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

QQuickView: handling mouse events in C++

I render my 3d model under qml controls using QQuickView::beforeRendering event. I want to do my mouse events handling in C++ if user clicks outside any of qml controls/ How can I found out in QQuickView::mousePressEvent that mouse is pressed…
Roman Kolesnikov
  • 11,777
  • 11
  • 44
  • 67
4
votes
1 answer

Is it possible to use QAbstractTableModel with TableView from QtQuick.Controls?

I’m trying to implement following thing: There is 2d table with values. I need to implement UI for viewing data and editing it. To simplify synchronisation between edits from UI and table updates coming from the back-end, I want model to store…
Usov
  • 43
  • 4
3
votes
1 answer

TableView replacement for TableViewColumn in Qt Quick 2

In Qt Quick Controls 1 we can style different columns from a model with TableViewColumn: TableView { anchors.fill: parent TableViewColumn {title: "1"; role: "one"; width: 70 } TableViewColumn {title: "2"; role: "two"; width: 70 } …
Sandro4912
  • 313
  • 1
  • 9
  • 29
3
votes
1 answer

qtcreator can't find QT quick on ubuntu 18.04

I would like to develop a Qt Quick application on my Ubuntu 18.04.03 machine. I am going the route of installing Qt through the Ubuntu distribution. I first install the following: sudo apt-get install qt5-default # Installs Qt 5.9.5 sudo apt…
Tomasso
  • 693
  • 2
  • 9
  • 17
3
votes
2 answers

how to get the tumbler to 'base style'

I am creating a simple tumbler with QML. When I run the application, the tumbler is in the "Flat Style". How to I change it to the "Base Style" (the 3D Look)? You can see the "3D Look" at this…
Marcelo
  • 99
  • 10
3
votes
1 answer

Qt found not working imports, but project is working. Partially

I want to build simple Qt Quick application that access filesystem and do some work with files. But Qt Creator behaves strangely. I used Qt Designer and added a couple of elements in window Yellow ! sign says: But project compiles and runs…
3
votes
2 answers

QML - Filling menu with model items

I'm trying to fill a Menu dynamically from a ListModel, but this approach won't work (when I right click the menu won't show anything): this my menuItems: import QtQuick.Controls 1.3 ListModel{ id:menuItems ListElement{ …
pourjour
  • 1,186
  • 2
  • 13
  • 28
3
votes
4 answers

Adding TabButton dynamically to TabBar in QML

I am trying to add a tabButton to TabBar dynamically on pressing a button but i have spent a lot of time searching but i am not getting how to add, below is the code which i am working on : MyTabButton.qml import QtQuick 2.4 import QtQuick.Controls…
pra7
  • 834
  • 2
  • 21
  • 50
3
votes
0 answers

Qt - How to dynamically insert Qml objects from C++ class

I need an advice about my simple QT/QML application. I have the following situation: about the interface, I have a main area called 'flickableArea' (flickableArea.qml) divided into four areas (item slot1, item slot2, item slot3 and item slot4). Each…
daniele86
  • 147
  • 3
  • 14
3
votes
2 answers

QT QML how to change only one feature of a, say, button style

changing the style of a component, seems to replace all the features of the default style. is there a way to change only one feature? For example, suppose i want a red button; import QtQuick 2.7 import QtQuick.Controls 1.4 import…
jkj yuio
  • 2,543
  • 5
  • 32
  • 49
3
votes
1 answer

Qml Listview items disappear when scrolling

I have got the following scrollview with listview inside: ScrollView{ anchors.fill: parent ListView{ id: lvCommitsBranch model: git.getCommitsBranch(); clip: true delegate: Rectangle { height: 100 …
Abdelilah El Aissaoui
  • 4,204
  • 2
  • 27
  • 47
3
votes
3 answers

Disable mouse wheel for QML Slider

I want to be able to scroll Flickable with mouse wheel (or two fingers on touchpad) without changing Sliders it may containt. Sample code and result application: import QtQuick 2.7 import QtQuick.Window 2.2 import QtQuick.Controls…
rsht
  • 1,522
  • 12
  • 27
3
votes
1 answer

ComboBox disable an item at a particular index

I have a combobox in qml in a as a TableViewColummn and I define it as follows: import QtQuick 2.3 import QtQuick.Window 2.2 import QtQuick.Layouts 1.1 import QtQuick.Controls 1.4 import QtQuick.Controls.Styles 1.4 ListModel { id: comboModel …
Luca
  • 10,458
  • 24
  • 107
  • 234
3
votes
1 answer

Animation on expand/collapse of Qt Quick TreeView

I have asked this question over at the Qt forums (link), but received no response, and a similar question over there has gone unanswered for 3 months... so here I am. I am trying to animate the expand and collapse of a TreeView in QML. I have an…
NotJo
  • 63
  • 1
  • 8
3
votes
1 answer

selectedRows() in Qml TreeView with ExtendedSelection is one step behind

I have a treeview in the qml, the selection mode is ExtendedSelection. Whenever the selected index changes by the user I need to exactly know which tree rows are selected. Here is the TreeView: Controls.TreeView { id: myTreeView …
Ehsan Enayati
  • 299
  • 2
  • 16