Top "Qtquick2" questions

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

Get QML root object from anywhere in a code in Qt 5.3

How to retrieve a root object (the code below returns 0, rootContext()->findChild() also returns 0) from anywhere in a …

qt qml qt-quick qtquick2
Is there any DatePicker control for Qt 5?

I'm writing my first QML/Javascript app for QtQuick 2.0. I need to place a DatePicker control, but I haven't found …

datepicker qml qtquick2
How to change the color (background, text) of header of TableView in Qt5?

I use TableView for my application in Qt5. It's possible to change color (background, text and alternate) of rows of …

qt qml qt5 qtquick2
Sending a signal to a QML item from C++ (Qt5)

I have a QML file containing this: Text { id: testData onTaskClicked:{ testData.text = task.name } } The catch is this taskClicked …

c++ qt qml qt5 qtquick2
Time Picker in QML

I need to give the user the possibility to select a date and time within a QML application. For selection …

qt qml qt5 qtquick2 qtquickcontrols
How to make QtQuick2.0 application window not resizable?

I have a QtQuick2.0/QtQuick2.1 application with following default codes on main.cpp: int main(int argc, char *argv[]) { QGuiApplication …

window qt5 window-resize qtquick2
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 …

qt qml qt5 qt-quick qtquick2
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 …

qt qtquick2 qt-quick qtquickcontrols qtquickcontrols2
How to Use QML StackView?

I am a beginner in QMl and have worked more on StackWidget in QT C++.In QML i am confused …

qt qml qtquick2 qt-quick qtquickcontrols
How do I apply the style to a TextField in QML? It seems "style" attribute isn't available

I am trying to apply some styles to a new qt 5.7 application I am working on and the following is …

qt qml qtquick2 qtquickcontrols2