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

Module "QtQuick.Controls" is not installed on Raspberry Pi

I'm trying to compile some qml on a Raspberry pi 3 running Raspbian-Jessie using qt5 (5.3.2). I managed to run some simple stuff but now I need to use QtQuick.Controls so I added import QtQuick.Controls 1.0 to my qml file but when I try to run it, I…
DeadlyJesus
  • 1,503
  • 2
  • 12
  • 26
7
votes
2 answers

Qt 5.7 QML Why are my CheckBox property bindings disappearing?

I have a simple list of CheckBoxes, one for each day of the week. They depend on the value of days, an integer using a mask, 1 bit for each CheckBox. Assigning to days both with the "clear all" button or the "set all" button works and they update.…
jkj yuio
  • 2,543
  • 5
  • 32
  • 49
7
votes
1 answer

How to change the font color of a MenuBar?

How can I change the text color of the menu items of a QML MenuBar? import QtQuick 2.4 import QtQuick.Controls 1.3 import QtQuick.Window 2.2 import QtQuick.Dialogs 1.2 import QtQuick.Controls.Styles 1.3 as QtQuickControlStyle ApplicationWindow { …
Vertexwahn
  • 7,709
  • 6
  • 64
  • 90
7
votes
2 answers

Creating a scalable, glossy/shiny button with Qt Quick

I'd like to create the glossy button below with Qt Quick (preferably with pure QML, no C++): It needs to be scalable, so I can't use PNGs, etc. My code so far: import QtQuick 2.3 import QtQuick.Controls 1.2 import QtQuick.Controls.Styles…
Mitch
  • 23,716
  • 9
  • 83
  • 122
7
votes
2 answers

QtQuick, how to know if a application was compiled on debug or release mode?

At Qt/C++ there is QT_DEBUG define macro to know when it is compiled at debug or release. Is there any method to know if is the application running in debug o release mode inside a QML file?
Ricardo
  • 667
  • 9
  • 25
6
votes
1 answer

QT 5.7 QML quick semi-transparent rectangle, with rounded corners on one side

I want a semi-transparent rectangular shape using Qt Quick QML, but with rounded corners on 1 side only. This is sort of the shape of the rectangle I want. If it were not see through, I would probably just overlap 2 rectangles, one with rounded…
James
  • 2,742
  • 1
  • 20
  • 43
6
votes
2 answers

Passing focus between ListView

I am creating a QML ListView that supports multiple selection, and will be instantiating multiple of these in my application. I need to give keyboard focus to a specific list, handle key presses for that list, and draw highlighting for selected…
Phrogz
  • 296,393
  • 112
  • 651
  • 745
6
votes
1 answer

Even initial distribution of space in a SplitView

I'm writing a QML app using SplitView. I want the initial space to be evenly distributed between items, but instead one item takes all the space. import QtQuick 2.7 import QtQuick.Layouts 1.3 import QtQuick.Controls 1.4 ApplicationWindow { …
Phrogz
  • 296,393
  • 112
  • 651
  • 745
6
votes
1 answer

QML Form layout (GridLayout) troubles

I am trying now to convert my app UI from C++ to QML. At some step I need a login window so I created it in QML with code below: Window { id: loginWindow property string username: login.text; property string password: password.text; …
folibis
  • 12,048
  • 6
  • 54
  • 97
6
votes
1 answer

QML form layout

I use QML for UI in my app and now I want to build some form. This is a code: Window { width: 400 height: 600 flags: Qt.Dialog modality: Qt.ApplicationModal GridLayout { id: mainLayout columns: 2 …
folibis
  • 12,048
  • 6
  • 54
  • 97
6
votes
1 answer

“module QtQuick.Controls is not installed” error On Ubuntu 14.04

I installed the latest Ubuntu SDK and tried to use Qt Quick Controls but they were unavailable. Then I installed Qt 5.2.1 from here https://qt-project.org/downloads and created a new project with the Qt Quick Controls option selected. when I tried…
George Sofianos
  • 1,141
  • 1
  • 13
  • 26
6
votes
1 answer

how to sort QML TableView in QtQuick 2?

I want to implement a sortable TableView with custom roles with Qt 5.1. But I don't know what to do more to make it sorted when user clicked on header. in my Qt .pro file, I added: !android: !ios: !blackberry: qtHaveModule(widgets): QT +=…
Brent81
  • 1,152
  • 1
  • 13
  • 19
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
2 answers

QML Dialog is broken?

I have this code: import QtQuick 2.3 import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.1 import QtQuick.Controls 1.2 Dialog { standardButtons: StandardButton.Ok | StandardButton.Cancel width: layout.implicitWidth height:…
Timmmm
  • 88,195
  • 71
  • 364
  • 509
5
votes
2 answers

How to arrange tabs of TabView in multiple rows?

From: http://doc.qt.io/qt-5/qml-qtquick-controls-tabview.html#details TabView { Tab { title: "Red" Rectangle { color: "red" } } Tab { title: "Blue" Rectangle { color: "blue" } } Tab { …
Aquarius_Girl
  • 21,790
  • 65
  • 230
  • 411
1
2
3
16 17