Questions tagged [qt-quick]

Qt Quick is a framework that provides a declarative way of building custom, highly dynamic user interfaces with fluid transitions and effects, which are becoming more and more common especially in mobile devices.

Qt Quick is a framework that provides a declarative way of building custom, highly dynamic user interfaces with fluid transitions and effects, which are becoming more and more common especially in mobile devices.

Qt Declarative is a runtime interpreter that reads the Qt declarative user interface definition, QML data, and displays the UI that it describes. The QML syntax allows using JavaScript to provide the logic, and it is often used for this purpose. It is not the only way, however: logic can be written with native code as well.

Qt Quick and QML are officially supported in Qt 4.7 (with Qt Creator 2.1), and it is a commercial option in mobile applications when Qt 4.7 is available for deployment in Symbian and Maemo/MeeGo devices.

Qt Quick provides everything needed to create a rich application with a fluid and dynamic user interface. It enables user interfaces to be built around the behavior of user interface components and how they connect with one another, and it provides a visual canvas with its own coordinate system and rendering engine. Animation and transition effects are a first class concept in Qt Quick, and visual effects can be supplemented through specialised components for particle and shader effects.

Video Course

Pluralsight offers a course, Qt Quick Fundamentals, which specifically targets learning Qt Quick. It is part 2 of a three part course on the Qt framework.

Pluralsight is subscription based, but if you're only interested in Qt or Qt Quick you can send the author @todgentille a private tweet and request a week long VIP pass. You'll get unlimited access to the higher subscription level for a week that allows viewing online and offline and you can download the course materials.

884 questions
5
votes
1 answer

How to delete/remove screen/page from the display in QML?

I have one Loader using which I am loading the multiple screen/pages. I have around 10 QML screen/pages which I am loading in the loader one by one on mouse events. On some of the screens I need to set transparency using QWidget::setMask() function…
kbalar
  • 359
  • 2
  • 5
  • 16
5
votes
1 answer

Running PySide6 and GPIO on Raspberry PI 4

Recently I have bought a brand new Raspberry Pi 4B with 8Gb RAM and installed Ubuntu Desktop 21.04 there. My goal is to create a GUI on a touchscreen which controls GPIO pins (some hardware devices). Since controlling GPIO is done by Python I would…
supercolo
  • 171
  • 1
  • 8
5
votes
2 answers

Is Qt Quick mature enough for large desktop applications?

I'm planning to write a program that is especially designed for tablets, the main platform is MeeGo (because I'm taking a contest). Edited: My program has following needs: heavy C++ usage to deal with networking and low-level…
fool
  • 508
  • 6
  • 15
5
votes
3 answers

QML Animation with both "velocity" and infinite "loops"

I'm trying to put together an animation in which I get to specify the velocity (rather than the duration) and which loops forever. I came up with two non-working examples: FirstTry.qml import Qt 4.7 Rectangle { width: 100; height: 100 Text { …
xcvii
  • 450
  • 3
  • 17
5
votes
1 answer

QtQuickControls2 Dialog vanishing on click outside

I am trying to use a QtQuickControls2 Dialog: Dialog { id: dialog x: parent.width/2-width/2 y: parent.height/2-height/2 width:300 height:200 title: "Warning" modal: true …
numberCruncher
  • 595
  • 1
  • 6
  • 25
5
votes
1 answer

How to show paginated text from a QTextDocument in QML?

I currently have a C++ class inheriting from QQuickPaintedItem. I use it to paint layouted, paginated richtext from a QTextDocument via QTextDocument::drawContents (or by directly calling its QTextDocumenLayout's draw method). However, as stated in…
Inkane
  • 1,440
  • 1
  • 15
  • 32
5
votes
1 answer

module "QtQuick.Dialogs" version 1.3 is not installed

I'm trying to import QtQuick.Dialogs version 1.3 in a code that runs without any issue with version 1.2. However on runtime I get the following error module "QtQuick.Dialogs" version 1.3 is not installed I'm compiling with the default Desktop Qt…
5
votes
1 answer

Right way to dynamically create qml windows

I'm working on a Qt application and I need to create windows dynamically. Each window consists of QObject-based c++ backend and qml-based interface. Each window needs to be connected to the bunch of signals emitted by core classes. Current solution…
Bearded Beaver
  • 646
  • 4
  • 21
5
votes
1 answer

center a checkbox in tableview with QML

I am using a checkbox control in a TableView, which I define with QML as follows: import QtQuick 2.2 import QtQuick.Controls 1.4 import QtQuick.Controls.Styles 1.4 TableViewColumn { title: "" role: "check" delegate: CheckBox { …
Luca
  • 10,458
  • 24
  • 107
  • 234
5
votes
6 answers

How to apply opacity mask to a QML item?

The look and feel I'm trying to go for is to have a solid color button, and text on it like "Hello World" where the text is completely transparent, and the background shows through the button. In other words, having text as a transparency mask on a…
James
  • 2,742
  • 1
  • 20
  • 43
5
votes
1 answer

Difference between QML's Component and Instantiator?

The QML types Component and Instantiator appear to do similar things; create QML objects on demand, as opposed to when parsing their definitions. So what's the difference? Why would I want to use one over the other?
JesseTG
  • 2,025
  • 1
  • 24
  • 48
5
votes
1 answer

How to install and use an Event Filter written in Qt C++ in a QML application

I have a situation where I need to add keyboard shortcuts to an application that is mainly comprised of a QtQuick user interface. The version of Qt Quick is unfortunately locked to Qt5.3 and Shortcuts (the way we need them) were only introduced in…
Louis Parkin
  • 800
  • 7
  • 15
5
votes
2 answers

How to instantiate C++ component in QML - WITH Parameterized Constructor

In hypothetical example, I have a C++ component - class Board : public QObject { Q_OBJECT public: //Q_PROPERTYs go here explicit Board(int rows, int columns) { matrix = std::vector(rows, std::vector(columns, 0)); …
essbeev
  • 255
  • 2
  • 7
5
votes
1 answer

QML: Cannot read property 'xxx' of undefined

ApplicationWindow { id: root property string rootName: "--rootName" visible: true width: 800 height: 400 title: qsTr("WatchFace Maker") WatchLcd{ property string watchLcdInApp: "watchLcdInApp" id:…
Eugene
  • 53
  • 1
  • 6
5
votes
3 answers

How to propertly connect signal in Loader's item?

I want connect one signal from QObject to various pages, loaded by the "Loader" qml element. My problem similar Dead QML elements receiving signals? but loaded items destroyed before calling the "onDestruction" method. For example below, if switch…
Andrey Reeshkov
  • 331
  • 5
  • 14