Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.

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

From Qt Wiki
Revision as of 13:25, 23 August 2015 by AutoSpider (talk | contribs) (Simplify punctuation)
Jump to navigation Jump to search
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