Qt-contributors-summit-2013-Qt-Quick-views-version-2

From Qt Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Auto-imported from ExpressionEngine.
Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean.

There is a plan for the creation of a better views system. No-one has time to contribute, so it is unscheduled.

This is orthogonal to the better models.

Idea is to split a"View" into a variety of interchangable components.

We start with basic versions of the interchangeable components which allow for the same behavior as current views, but QML's extensibility means that this will make the views a lot easier to tweak and customize.

Controller

Containing viewport, selection model and reaction to user input

Layout

Containing the path the items sit on and how they traverse the path

Delegate

Containing the components for how to create different types of items depending on model data.

Instantiator

Containing the ability to create delegate instances based on the viewport state.

Model

Separate topic, contains actual data, gets plugged into the instantiator