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
0
votes
0 answers

QtQuick Controls: Partially changing control style without discarding system palette

I want to partially change the style of a control without affecting it's rendering otherwise. Let's take a button as an example and create a MyButton.qml containing: Button { id: mybutton style: ButtonStyle { label: Text { …
Mav
  • 60
  • 6
0
votes
1 answer

Android App Made in Qt Not Launching

I am getting started with developing an application for Android using Qt 5.8 and am running into issues running a basic application. When I run a basic application on an Android emulator, the application fails to load and a lot of errors are printed…
0
votes
1 answer

Get row index of checked checkbox in qml

I have TableView filled with text. One of columns has checkbox as delegate. I check one of checkboxes. How can I get row index of current checkbox? To get row index I use currentRow function but it returns -1 because when I check checkbox I don't…
Pillar
  • 87
  • 2
  • 11
0
votes
1 answer

How to get the current row of a QML TreeView?

Is there a way to get the row number of a QML TreeView when selecting/clicking something on the TreeView? For example, for a TableView I use currentRow. Is there something equivalent for a TreeView?
0
votes
1 answer

How to force active focus/select QML Tab under QML TabView?

I have a TabView with 3 Tabs and I want to change the focus/select the third Tab when a button is pressed. I've tried forceActiveFocus, but it does not work. //.qml TabView { Tab { id: redTab title: "Red" Rectangle {…
0
votes
1 answer

How to make a signal like onEditingFinished available to individual TextInput elements reusing one common TextInput defined

I am new to QML & Qt. I am trying to make multiple TextInput elements which can send their own text when onEditingFinished is triggered. Following is a TextInput item that I have created in MyTextField.qml: MyTextField.qml import QtQuick 2.5 import…
TheWaterProgrammer
  • 7,055
  • 12
  • 70
  • 159
0
votes
1 answer

QML TextInput : How to detect user has completed typing on the text field

I am new to Qt & QML. I am using QtQuick 2.4. I have TextInput item with a signal defined in a qml file like below: import QtQuick 2.4 TextInput { text: "Text" cursorVisible: true signal qmlSignal(string msg) } I also have a slot tied to…
TheWaterProgrammer
  • 7,055
  • 12
  • 70
  • 159
0
votes
1 answer

Component pushed on StackView does not bind correctly

The example below illustrates my problem. I create a small Rectangle at the top left and clicking on it toggles the color between red and green. Next, I create a StackView and I push a Rectangle to the StackView and bind the color of this second…
Marc Van Daele
  • 2,856
  • 1
  • 26
  • 52
0
votes
1 answer

How to use userdefine model in qml treeview?

The reference demo is like this: TreeView { TableViewColumn { title: "Name" role: "fileName" width: 300 } TableViewColumn { title: "Permissions" role: "filePermissions" width: 100 } …
cholf
  • 9
  • 4
0
votes
1 answer

QML tab occasionally stretches off-screen

I have a QML-based GUI with a fixed width that uses the TabView type in several places. On one page, I have something like this (leaving out most properties except for lateral anchors): ColumnLayout { MyTabsViewSubmenu { // defined below …
Kyle Strand
  • 15,941
  • 8
  • 72
  • 167
0
votes
1 answer

QML mousearea layout

I am currently setting up a QUI application in QML / QtQuick. My GUI is composed of a page including a png image. This image shows arrows that should be pressed by the user to trigger some application behavior (i.e. go up / down / left / right). The…
arennuit
  • 855
  • 1
  • 7
  • 23
0
votes
1 answer

QML ComboBox crashes on embedded System

I added a ComoboBox in my program to my qml. This runs fine on desktop (both Ubuntu and Win7). As soon as I deploy my program on my embedded linux machine (sabrelight with yocto) it crashes as soon as I try to open the list of items from the…
PsiX
  • 1,661
  • 1
  • 17
  • 35
0
votes
4 answers

QML - Gradient not working

I'm learning QML so that I'll be able to create a different kind of dashboard. I have created a dashboard for my project. In my first review I didn't add signal and slot, that time gradient worked properly. For example if I press the button color…
Jerwin Prabu
  • 336
  • 1
  • 3
  • 16
0
votes
1 answer

QML QtQuick `control` property of corresponding Style object is sometimes null

I have some QML code using QtQuick.Controls 1.4 from Qt 5.6.1. I have some wrappers around various controls, such as ComboBox; these make use of Style objects. For instance, MyComboBox is a ComboBox with a custom ComboBoxStyle. Every so often, when…
Kyle Strand
  • 15,941
  • 8
  • 72
  • 167
0
votes
2 answers

QML Binding integer property - changes in c++ not sent to QML

I am new to QtQuick controls, I would like to create a simple GUI and I have encountered the following problem with binding certain c++ variables to qml widgets properties: In the simplified example below, I have a single combobox for which I would…
tomj
  • 1,089
  • 7
  • 17
1 2 3
16
17