Questions tagged [qtquickcontrols]

The Qt Quick Controls module provides a set of controls that can be used to build complete interfaces in Qt Quick. The module is new in Qt 5.1 and requires Qt Quick 2.1.

Qt Website

The Qt Quick Controls module provides a set of controls that can be used to build complete interfaces in Qt Quick. The module is new in Qt 5.1 and requires Qt Quick 2.1.

254 questions
19
votes
4 answers

QML window resize/move flicker

I'm developing a simple QML application right now and I noticed that resizing and moving a QML window generates an ugly flicker compared to a QtWidgets window, for instance. So I created 2 test applications to show the…
Jacob Krieg
  • 2,834
  • 15
  • 68
  • 140
15
votes
3 answers

QML - Cannot assign to non-existent property "style"

I'm using Qt 5.10.1 with Qt Creator 4.5.1 and the style property is never available in elements. For example, as shown here ButtonStyle QML Type , I would like to do: Button { text: "A button" style: ButtonStyle {...} } But, I get the…
vincedjango
  • 1,022
  • 1
  • 13
  • 24
15
votes
2 answers

Qt Quick Controls 2 and TableView

Is it OK to use TableView in Quick Controls 2.0 application? This will require to have both imports: import QtQuick.Controls 1.4 import QtQuick.Controls 2.0 Will I get any side effects? Another related question: it seems that TableView belongs to…
Alexander Dyagilev
  • 1,139
  • 1
  • 15
  • 43
12
votes
1 answer

PyQt5 QuickControls Material style

I'm experimenting with QuickControls with latest PyQt5 and trying to apply Material style via QML as explained here and here: QQuickStyle::setStyle("Material"); But unfortunately I can't find any refernces to QQuickStyle class in PyQt to apply…
Merlin
  • 121
  • 1
  • 4
11
votes
3 answers

Time Picker in QML

I need to give the user the possibility to select a date and time within a QML application. For selection dates there is the Calendar in QtQuick Controls. I haven't found a similar control to let the user select the time of day. On the internet…
Matthias Kuhn
  • 1,162
  • 2
  • 14
  • 42
10
votes
1 answer

QtCreator new project Qt Quick Controls vs. Qt Quick

I want to create new Qt Quick project in Qt Creator and I've pressed New project, selected application name and location in Wizard, but then I am confused at next wizard's step (Qt Quick Component Selection), as seen in screen-shot: Which set…
KernelPanic
  • 2,328
  • 7
  • 47
  • 90
9
votes
1 answer

Error module "QtQuick" version 2.12 is not installed

I have installed Qt 4.5.0 community and I am trying to build my project with Qt5.10.0 MinGW 32 bit. Having QtQuick 2.12 imported in my qml file in a qtquick project, I face with the following error: module "QtQuick" version 2.12 is not…
HoOman
  • 455
  • 1
  • 7
  • 15
9
votes
3 answers

qml using Row to align components in the center

I am using Row to layout some buttons on a Rectangle which is my custom toolbar implementation. The problem is no matter what I do, the components are always aligned from the left. I would like them to be aligned with the center of the row and…
user42140
  • 257
  • 1
  • 2
  • 5
9
votes
1 answer

How to change the cursor's shape without using MouseArea?

I looked over the similar threads but it didn't help much. I'm using QtQuick.Controls.Button in QML and I cannot change the cursor shape when hovering over the button! I want to achieve this without using MouseArea. What can be done? As I looked…
Ispas Claudiu
  • 1,890
  • 2
  • 28
  • 54
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

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
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
3 answers

How to take Screenshot of QML application without QQuickView

I want to grab screen of my QML application. But my root QML object is ApplicationWindow, so I can't use QQuickView to show it. Instead I have to use QQmlApplicationEngine. I know how to take screenshot with QQuickView (QQuickWindow::grabWindow),…
user3296301
  • 83
  • 1
  • 3
8
votes
5 answers

Error : "module "QtQuick.Controls" is not installed"

Getting this error while running my program. I searched the Internet to find QtQuick.Controls but couldn't get any resolution. How can I install this?
Jino
  • 345
  • 1
  • 2
  • 16
7
votes
2 answers

How can I disable the mouse wheel for a TextArea without disabling the entire control?

I'm using a TextArea to display multi-line text with embedded tags in the delegate for a ListView. I have it set to read-only (and not disabled) because I need hyperlinks in the text to be clickable so I need to make use of its…
MusiGenesis
  • 74,184
  • 40
  • 190
  • 334
1
2 3
16 17