Qt-contributors-summit-2013-Qt-Quick-views-version-2: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
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 <span class="caps">QML</span>’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

Revision as of 14:08, 25 February 2015

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