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

Multiple delegates and multiple models use in same list view in same QML

Can anyone suggest how can we use multiple delegates and multiple models in same PathView in same QML? My requirement is like when I double click on rectangle (id: myWin) I will get QDialog window (InterfacageQML.mouseClick()). It appears only when…
oumayma
  • 21
  • 4
2
votes
2 answers

Time input field in QML

I need to implement a TimeEdit(HH:MM:SS) field in QML similar to QTimeEdit in QT C++. In QML I didn't find TimeEdit and I have implemented the control similar to TimeEdit using TextField and if I add inputMask then the Regular expression is not at…
pra7
  • 834
  • 2
  • 21
  • 50
2
votes
0 answers

QML ToolBar Menu is not on proper position

I'm trying to modify Cura Desktop Application. There is one Toolbar which is used to rotate/move objects. In default Cura Application it is on left side of screen. I've changed it to bottom of screen but because of this the menu open when I clicked…
RaTh0D
  • 323
  • 3
  • 19
2
votes
3 answers

Is there a native data model from TreeView in QML?

The QT document had implied that any implementation of QAbstractItemModel can be used for TreeView. These models are usually in C++, which is inconvenient for now. So is there an native QML model which can be utilized in treeview? Can I set a…
My_Cat_Jessica
  • 123
  • 1
  • 11
2
votes
1 answer

How to create an animated, variable size accordion component in QtQuick / QML

I want to create an animated accordion-like element that expands on click. Here's how it should work. When the user clicks one of the red rectangles, the green rectangle which is the actual content, should expand. I want this expansion to be…
Mateo Hrastnik
  • 533
  • 1
  • 7
  • 20
2
votes
1 answer

QtQuick: view allowing multiple selection at cell level

I'd like to implement a table view, using QtQuick, allowing multiple selection at cell level, emulating the behaviour of old style QTableView with QAbstractItemView::SelectItems and QAbstractItemView::ExtendedSelection flags enabled. Which of the…
2
votes
2 answers

How create shared library in QT/QML

I have 4 qml files and one main.cpp to load qml file. Is it possible for me to create 1 dll file for those 4 qml file. And use it in different application if so how to do that.
jay
  • 37
  • 2
  • 8
2
votes
1 answer

how to catch Spinbox event of change value in QML?

Subj I show my data on QML' Listview with delegated text, labels, and spinboxvalue elements of item. When user change the value of spinbox I need to know it and make some deals. But MouseArea works beyond of Spinbox, not on spinned buttons,…
Cat Vasey
  • 67
  • 1
  • 7
2
votes
1 answer

Closing qml dialog properly

I've been playing around with dialogs and there is something that bothers me. I have the following code: ApplicationWindow { visible: true width: 640 height: 480 title: qsTr("Hello World") Button { id: click x:…
Abdelilah El Aissaoui
  • 4,204
  • 2
  • 27
  • 47
2
votes
0 answers

Position of mouse on image

I have two images: 1. normal image 2. same image with the ability to zoom. I have 4 draggable shapes (A,B,C,D) on second image (image with the ability to zoom). I want to display position of mouse on normal image (with draw a shape (canvas3)) when…
neda
  • 329
  • 1
  • 4
  • 15
2
votes
1 answer

Rectangle in Scrollview is not visible

I've created a new project and added a scrollview with a rectangle. When I start the project the rectangle is not displayed but if I add an other control it appears. I'm not sure what I'm doing wrong, I want to see the rectangle always. import…
Abdelilah El Aissaoui
  • 4,204
  • 2
  • 27
  • 47
2
votes
0 answers

Getting SurfaceTexture pixels fast or trick with TextArea

I have the Qt realtime broadcasting chat application for Android (v 4.1, API 16), that sends H.264/AAC chunks to RTMP server. For now, application uses SurfaceView for capturing frames from Camera and in onPreviewFrame function I encode frames to…
0x0000DEAD
  • 41
  • 6
2
votes
1 answer

QML TreeView not updating at runtime after adding new data to the model

I have a QML TreeView that gets data through a QStandardItemModel. When the application is running, I press a button which adds a new entry. I know the data is changing, but the QML TreeView is not updating. I've also tried beginResetModel() and…
2
votes
2 answers

Align and size buttons to the textbox above it

I am using Qt qml to design a very simple user interface. The QML is as follows: import QtQuick 2.0 import QtQuick.Layouts 1.1 import QtQuick.Controls 1.4 Rectangle { width: 800; height: 600 ColumnLayout { anchors.centerIn:…
Luca
  • 10,458
  • 24
  • 107
  • 234
2
votes
2 answers

Select/Highlight multiple rows in TreeView programatically

I have a TreeView and an array containing ModelIndexes from that tree. The treeview's selectionMode is set to Controls.SelectionMode.ExtendedSelection. Is there a way to highlight all the rows in the tree based on the indexes in the array? I can…
Ehsan Enayati
  • 299
  • 2
  • 16