Qt Declarative (Quick 2)
Go to file
Mitch Curtis 81e8cd6719 Make tests explicitly use Basic where necessary
The previous commit changes the how the default style is set, and since
the tests all assumed that Basic was the default, we now need to
ensure it is explicitly set.

If we want to, we can revert this patch (or file-by-file) later and
ensure that these tests work with all styles. For now, just keep things
working as they used to.

Tests that use QTEST_QUICKCONTROLS_MAIN are not changed, as they
already run with all built-in styles.

Tests that don't use types that will cause issues,
like tst_qquickcolor, do not need to be changed.

tst_snippets can be run manually to produce screenshots, so we specify its
style in a qtquickcontrols2.conf file to allow it to be overridden by e.g.
application arguments (QQuickStyle::setStyle() takes precedence over all
other approaches of setting a style).

Change-Id: Ifae7e959f89a41a757c170272038fad139bba04f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2020-10-07 13:31:20 +02:00
coin CMake: Enable enforcing CI tests 2020-07-13 18:01:41 +02:00
dist Add changes file for Qt 5.15.1 2020-08-31 10:24:53 +00:00
examples Rename "Default" style to "Basic" 2020-09-24 13:48:49 +02:00
src Make tests explicitly use Basic where necessary 2020-10-07 13:31:20 +02:00
tests Make tests explicitly use Basic where necessary 2020-10-07 13:31:20 +02:00
.cmake.conf Remove Qt Labs Calendar 2020-05-28 08:09:33 +02:00
.gitattributes Import the Qt Quick Controls 2 prototype 2015-02-05 14:50:29 +02:00
.gitignore Rename "Default" style to "Basic" 2020-09-24 13:48:49 +02:00
.prev_CMakeLists.txt Remove Qt Labs Calendar 2020-05-28 08:09:33 +02:00
.qmake.conf Remove QT_NO_LINKED_LIST 2020-02-05 19:55:58 +01:00
.tag Import the Qt Quick Controls 2 prototype 2015-02-05 14:50:29 +02:00
CMakeLists.txt CMake: Don't find_package(Qt6QmlTools) directly for cross-builds 2020-08-12 19:06:32 +02:00
LICENSE.FDL Add LICENSE.FDL for docs 2015-03-18 16:26:12 +02:00
LICENSE.GPL2 Fix license headers 2017-12-22 08:05:01 +00:00
LICENSE.GPL3 Fix license headers 2017-12-22 08:05:01 +00:00
LICENSE.GPLv3 Welcome to 2017 2017-01-09 17:29:40 +00:00
LICENSE.LGPL3 Fix license headers 2017-12-22 08:05:01 +00:00
LICENSE.LGPLv3 Welcome to 2017 2017-01-09 17:29:40 +00:00
README.md Update README.md 2017-12-22 12:47:54 +00:00
configure.json Make styles configurable features 2017-02-06 11:32:21 +00:00
dependencies.yaml Update dependencies on 'dev' in qt/qtquickcontrols2 2020-10-05 18:13:40 +03:00
qtquickcontrols2.pro Import the Qt Quick Controls 2 prototype 2015-02-05 14:50:29 +02:00
sync.profile Register C++ types declaratively 2020-08-26 11:45:57 +02:00

README.md

Qt Quick Controls 2

Qt Quick Controls 2 Styles

The Qt Quick Controls 2 module delivers the next generation user interface controls based on Qt Quick. In comparison to the desktop-oriented Qt Quick Controls 1, Qt Quick Controls 2 are an order of magnitude simpler, lighter and faster, and are primarily targeted towards embedded and mobile platforms.

Qt Quick Controls 2 are based on a flexible template system that enables rapid development of entire custom styles and user experiences. Qt Quick Controls 2 comes with a selection of built-in styles:

  • Default style - a simple and minimal all-round style that offers the maximum performance
  • Fusion style - a platform-agnostic style that offers a desktop-oriented look'n'feel
  • Imagine style - a designer-friendly style based on image assets
  • Material style - a style based on the Google Material Design Guidelines
  • Universal style - a style based on the Microsoft Universal Design Guidelines

More information can be found in the following blog posts:

Help

If you have problems or questions, don't hesitate to:

Installation

The MINIMUM REQUIREMENT for building this project is to use the same branch of Qt 5. The dependencies are qtbase, qtxmlpatterns and qtdeclarative.

To install the controls into your Qt directory (QTDIR/qml):

qmake
make
make install

If you are compiling against a system Qt on Linux, you might have to use sudo make install to install the project.

Usage

Please refer to the Getting Started with Qt Quick Controls 2 documentation.