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

From Qt Wiki
Jump to: navigation, 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