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

From Qt Wiki
Revision as of 09:21, 6 February 2015 by Maintenance script (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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