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
9
votes
1 answer

QDeclarativeView no such file ot directory. Running QML and c++ application in qtCreator

What I am trying to do is test QML in qtcreator. I have newest version Qt Creator 2.8.1 based on Qt 5.1.1. I would like to add qml to my c++ application. I tried many ways. The most reasonable look using QDeclarativeView but I can't include it. in…
kajojeq
  • 886
  • 9
  • 27
9
votes
3 answers

Qt5 QML error QtQuick QtGraphicalEffects is not installed

After successful compilation of project, I have get an executable file. When I type ./program in result I see: QML Error: qrc:///qml/main.qml:25:1:module "QtGraphicalEffects" is not installed qrc:///qml/main.qml:24:1:module "QtQuick" is not…
jtomaszk
  • 9,223
  • 2
  • 28
  • 40
9
votes
2 answers

module "QtQuick" plugin "qtquick2plugin" not found in static linked application

I builded static version of the Qt libraries and compile the test application based on QtQuick2ApplicationViewer. When starting it produces an…
ctinka
  • 393
  • 1
  • 5
  • 11
9
votes
4 answers

QML gradients with an orientation

QML gradient allows only from top to bottom in a Rectangle. The documentation says that it has to be done through combination of rotation and clipping. I have just started learning QML (and little experience with HTML/CSS). Here is my code which I…
Xolve
  • 22,298
  • 21
  • 77
  • 125
8
votes
2 answers

How do I assign an TextInput to an int, in qml?

How do I assign an TextInput to an int, in qml? int new_span_seconds TextInput { id: editor width: 80 height: 17 color: "white" font.bold: true; font.pixelSize: 14 text: "21" …
user825174
  • 81
  • 1
  • 1
  • 2
8
votes
2 answers

How to update QAbstractItemModel view when a Data is updated

I use the Qt example for QAbstractItemModel and I try to update an Item to a given index. I tried to use emit DataChangedbut it doesn't work, the view is not updated. Here is an example: What I want: When you click on the button, it will update Data…
Ed Nio
  • 593
  • 2
  • 11
  • 27
8
votes
3 answers

import QtQuick.Controls 2.0 not working - QQmlApplicationEngine failed to load component

I have an app that its project generated using CMake in Qt5.7, so when import QtQuick.Controls 2.0 application failed to load with the following error: plugin cannot be loaded for module "QtQuick.Controls": Cannot load library …
Reza Ebrahimi
  • 3,623
  • 2
  • 27
  • 41
8
votes
2 answers

Do not repaint window during resize

My QML application (Qt 5.4) is based on a Window item. The application can be resized by the user. When the application is resized the content of the application is being resized respectively (with onWidthChanged and onHeightChanged). This is all…
daybyday
  • 163
  • 2
  • 7
8
votes
2 answers

Inner shadow on QML Rectangle

How do I implement a Rectangle in QML with an inner shadow? See example in link below: Create inner shadow in UIView UPDATE: Here's a simplified version of what I'm trying to do (which does not show any shadow): import QtQuick 2.0 import…
daybyday
  • 163
  • 2
  • 7
8
votes
1 answer

Qt Transform matrix

I need to manipulate QML items through QMatrix4x4, in order to apply some perspective transformations. Basically, I defined the class Transform to use an object QMatrix4x4 as argument for the transform field of the QML Item class Transform : public…
8
votes
2 answers

QtQuick - button onClick event

Background story So I recently decided that I should try out Qt. I started making a QtQuick Apllication. In my designer view I have one button and a mouse area. What I want to do: When I click the button, I want to display a message box with some…
lyubolp
  • 349
  • 2
  • 5
  • 12
8
votes
1 answer

How to use QML Scale Element for incremental scaling with different origin

I'm trying to use a QML Scale Element to perform view scaling around a point clicked by the user, but it's not always working as documented. To reproduce the problem, run the minimal QML example below (I'm using Qt 5.3.1 on Ubuntu 14.04 x86_64) and…
Charl Botha
  • 4,373
  • 34
  • 53
8
votes
3 answers

QML TableView access model properties from delegate

I have a TableView for which I've defined my own itemDelegate. Now, from within this delegate I can access the value for the column using styleData.value, but I'd also need to access the other properties in this same item but I can't find how to. I…
Pablote
  • 4,745
  • 9
  • 39
  • 46
8
votes
2 answers

C++ using signal slots for QML

I have a small class that is not working properly, and I can't get what is wrong with it. The compiler gives the message: main.cpp: error: undefined reference to 'CDetails::CDetails()' This is the snapshot from the code: //main.cpp #include…
Judith
  • 271
  • 2
  • 9
8
votes
3 answers

Create QML object from C++ with specified properties

Dynamically instantiating a QML object from C++ is well documented, but what I can't find is how to instantiate it with pre-specified values for it's properties. For example, I am creating a slightly modified SplitView from C++ like…
cmannett85
  • 21,725
  • 8
  • 76
  • 119