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

Enabled property of QML widget blocked by attached action

I want to enable button when TextField has acceptable text (I'm using the validator), and this code is working fine: import QtQuick 2.3 import QtQuick.Controls 1.2 ApplicationWindow { visible: true width: 400 height: 100 id:…
sweetSTEAM
  • 100
  • 5
2
votes
1 answer

How to get parentname of the select item in the treeView QML

My tree view displays correctly, but when I click the item in the tree I can't get the parent name. My QML code can be found below. TreeView { id:treeviewID anchors.fill: parent model: theModel style: styleTreeView selection:…
aryan
  • 29
  • 9
2
votes
1 answer

Update/repaint item manually

My question relates to Calendar but could be applied to every QML visual Item. Is there any way to repaint an Item manually? In my case I have a Calendar with custom content(small orange digit in the cell 26): To do that I use styles: import…
folibis
  • 12,048
  • 6
  • 54
  • 97
2
votes
1 answer

display text in tableviewcolumn in treeView QtQuick controls 1.4

Im trying to create a simple treeView appeared in Qt 5.5 , the problem is that the text in items of the tree doesn't display, despite the model is full. There is my code : TreeViewPM.qml Qt Code: Switch view import QtQuick 2.2 import…
2
votes
3 answers

Get Screen-Coordinates of a QuickControl

I have to set x,y coordinates of a QWindow. This QWindow has to get the screen coordinates of a QuickControl in my MainWindow + myValue. How do I get the global Screen-Coordinates for a QuickControl in QML?
RefMa77
  • 283
  • 2
  • 14
2
votes
1 answer

QML ListView populate property does not work (its animation)

I have following QML ListView inside ueLoginWindow: import QtQuick 2.0 import QtMultimedia 5.5 import QtQuick.Controls 1.3 import QtQuick.Extras 1.4 import QtQuick.Layouts 1.2 import QtQuick.Window 2.2 import QtTest 1.1 import Enginio 1.0 import…
KernelPanic
  • 2,328
  • 7
  • 47
  • 90
2
votes
1 answer

How to make rectangle height fill ScrollView

I have the following QML code: import QtQuick 2.4 import QtQuick.Controls 1.3 import QtQuick.Window 2.2 Window { id: win width: 1024 height: 768 visible: true ScrollView { id:scrollView anchors.fill: parent …
Ashkan Nourzadeh
  • 1,922
  • 16
  • 32
2
votes
1 answer

Propagate Click from QML Combobox

I have a Listmodel where the delegates get selected/highlighted when they are clicked on. However when I click on a Combobox, which is part of the delegate, the delegate does not get selected. Is there something like propagateComposedEvents which…
dh1tw
  • 1,411
  • 2
  • 23
  • 29
2
votes
1 answer

QML Changing style of TextField's menu

I would like to customize style of my application and I'm stuck on the style of TextField pop-up menu. TextField.style allows to customize the look of TextField but it doesn't contain the style of the menu. According to documentation there is a…
2
votes
1 answer

Editing a TextInput in a ScrollView

I have an issue with my QML. I'd like to edit a TextInput based on an action, setting the focus attribute to true. It works when the TextInput is located in a Rectangle, but not in a ScrollView. Here is an example: Item { id: main width:…
Pop
  • 12,135
  • 5
  • 55
  • 68
2
votes
2 answers

The structure of a mobile app with Qt Quick Controls

In the old days of com.nokia.meego or even now with the Sailfish.Silica module you are using the "Pages" for navigation inside the app. What should be used instead when developing a mobile app for Android with the Qt Quick Controls?
marmistrz
  • 5,974
  • 10
  • 42
  • 94
2
votes
1 answer

QML SpinBox - How to enable entering numbers when minimumValue is large?

If you create a SpinBox with a minimumValue of 100, it is difficult to manually enter numbers because validation happens as you type so any temporary value in the edit field that is outside the range bounds is prohibited. Take a SpinBox supporting…
pixelgrease
  • 1,940
  • 23
  • 26
2
votes
1 answer

QML TabView in ColumnLayout

I am trying to modify Gallery example. I want to add Button under TabView. So, I put TabView and Button into ColumnLayout, here is code: import QtQuick 2.3 import QtQuick.Controls 1.2 import QtQuick.Layouts 1.1 import QtQuick.Controls.Styles…
lnk
  • 593
  • 2
  • 11
  • 27
2
votes
2 answers

How to fill a QTableview using QML Tool Button

I need to press my create button under red circle and by pressing this button i am trying to fill first row of my table view. I am a new user in QT Quick please help me. I have wasted lot of time but have no way to do it. I am providing UI and code…
User
  • 619
  • 1
  • 9
  • 24
2
votes
1 answer

Extending TabViewStyle styleData

I am currently trying to find a nicer way to do this, add an icon to a tab. Right now I am piggy backing off the styleData.title to include the icon source, but it would be nice to be able to extend the styleData so I can include other custom…
Joseph Montanez
  • 1,598
  • 1
  • 17
  • 31