Top "Qtquick2" questions

Qt Quick is a modern user interface technology that separates the declarative UI design and the imperative programming logic.

Proper way to implement zoom/scale in Qt Quick (QML) Flickable

I'm using Qt 5.2 beta, Qt Quick 2.1. I have straight ahead problem with Flickable component. Here is minimal working code example: …

zoom scale qml qt5 qtquick2
How to create and use C++ objects in QML Javascript

My app uses both c++ and QML. I've defined several objects in C++ part to access SQL etc. It looks …

javascript qml qt5 qt-quick qtquick2
QML TableView with dynamic number of columns

I have been trying to use a QML TableView to display a QAbstractTableModel. The missing part of the equation seems …

c++ qt qml qtquick2
Q_ENUMS are "undefined" in QML?

Enums are not working out for me. I have registered them with Q_ENUMS() I did not forget the Q_…

c++ qt qml qtquick2 qt-signals
Qml QtQuick2 'Invalid property name "style"(M16)'

I'm writing a mobile application in Qt5.7.0 QtCreator 4.1 and i'm getting the error in QtQuick qml file 'Invalid property name "…

qt qml qt-creator qtquick2 qtquickcontrols2
How to scroll QML ScrollView to center?

I have code like this: ScrollView { Image { source: "..." } } Image is higher than the ScrollView. How can I scroll the latter …

qt qml qtquick2
Can I get the real width & height of a Text element?

I would like to get the real width & height of a Text element. If I use the paintedWidth & …

qt qml qtquick2 plasmoid
QML: Component vs Item as a container

What is the difference between Component and Item in QML ? The documentation is not absolutely clear here. What is the …

qt delegates qml qtquick2 qqmlcomponent
How to center dialog on screen in QtQuick Controls 2?

All my dialogs appear on the top left corner of screen instead of the center. What is the best way …

qt qml qt5 qtquick2 qtquickcontrols2
Deploy Qt5 QML application

To test QML deployment I've created a very simple QML application. Here is the code: main.cpp #include <QApplication&…

qt deployment qml qtquick2