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

How to make image to fill qml controls button

I want icon to fill Button. Here is code: import QtQuick 2.3 import QtQuick.Controls 1.2 import QtQuick.Layouts 1.1 import QtQuick.Window 2.2 Window{ id: root title: "settings" flags: Qt.Dialog minimumHeight: 700 minimumWidth:…
lnk
  • 593
  • 2
  • 11
  • 27
5
votes
3 answers

BusyIndicator does not show up

I want to show a BusyIndicator while a long process is going on. The problem is it does not show up when I make it run and shows afterwards when the process is completed. According to the docs The busy indicator should be used to indicate activity…
astre
  • 798
  • 6
  • 14
5
votes
3 answers

Qt 5 QML app with lots of Windows or complex UIs

In QtQuick 2 using the QtQuick Controls you can create complex desktop apps. However it seems to me that the entire UI must be declared and create all at once at the start of the app. Any parts that you don't want to use yet (for example the…
Timmmm
  • 88,195
  • 71
  • 364
  • 509
5
votes
1 answer

How to make QML flickable content hide outside flickable boundaries?

I have a rectangle with a Text and a Flickable in a vertical layout. When I flick the contents of flickable vertically it goes in front of the Text component. How can I make it go behind? How can I make contents of a flickable hide when moving…
uniquenamehere
  • 1,869
  • 3
  • 31
  • 60
5
votes
0 answers

Set Button imageSource from imageprovider

I have an image provider derived from QQuickImageProvider with an implementation of requestPixmap. This image provider works fine with an Image component. Now I want to provide the imageSource for a Button in the same way. But no image shows up.…
avb
  • 1,701
  • 5
  • 22
  • 37
4
votes
1 answer

how to make QtQuick TableView / TreeView with heterogeneous delegate chosen based on field value

How to make a TableView or TreeView with a cell delegate chosen according to the value of another cell? The idea is to make a property editor similar to this: I tried various of the approaches listed here:…
fferri
  • 18,285
  • 5
  • 46
  • 95
4
votes
2 answers

Which module to install to fix "module QtQuick.Controls.Styles is not installed" error for Yocto?

I've successfully built a Yocto image for the RPi2 following this tutorial. I decided to expand the QML demo and try some of the Qt quick styles (import QtQuick.Controls.Styles 1.4). Here is the bb file for the image # Pulled from a mix of different…
rbaleksandar
  • 8,713
  • 7
  • 76
  • 161
4
votes
1 answer

error C2280: 'QQmlPrivate::QQmlElement::QQmlElement(void)': attempting to reference a deleted function

I tried to operate a part of a qt project in Qt\Examples\Qt-5.9\quick\views, I am new to qml and I am trying to open each time a different QDialog window depending on qml pathview component that has been clicked. First of all, I started with…
Khaled
  • 81
  • 1
  • 14
4
votes
1 answer

QML SwipeView is covering entire window

I am having some problems if i use swipe view and i have written following code: import QtQuick 2.6 import QtQuick.Window 2.2 import QtQuick.Controls 2.2 Window { visible: true width: 640 height: 480 title: qsTr("Swipe View") …
pra7
  • 834
  • 2
  • 21
  • 50
4
votes
1 answer

How to Use QML StackView?

I am a beginner in QMl and have worked more on StackWidget in QT C++.In QML i am confused to use stackView and have written following code: Window { visible: true width: 640 height: 480 title: qsTr("Stack view") MainForm { …
pra7
  • 834
  • 2
  • 21
  • 50
4
votes
1 answer

QML combobox styling issue in QtQuick.Controls 2.2

I'm beginner. I'm trying to use combobox to populate a list of elements, but when I tried to style there is some problem while displaying text. Here is the code: import QtQuick 2.7 import QtQuick.Controls 2.2 Item { property string btntext :…
pra7
  • 834
  • 2
  • 21
  • 50
4
votes
0 answers

QML Text wrap in TableView

I want the text in each itemDelegate to wrap when it exceeds the width of the cell. It does that as needed but the overflow causes text to overlap with other cells and clipping. I know that the row height has to increase and I have to define a…
DanielJG
  • 365
  • 1
  • 3
  • 13
4
votes
1 answer

How do I split my QML code into multiple files?

I have just started playing with QML and have a view where I have a bunch of components as follows: Window { .... property Component dateTumbler: ControlView { // Definition follows } property Component timeTumbler:…
Luca
  • 10,458
  • 24
  • 107
  • 234
4
votes
1 answer

TextField can't be resized within RowLayout

After putting TextField in RowLayout I can't resize the TextField anymore. I tried to set anchors for TextField to fill left side of RowLayout and its center to make it the half of width of the RowLayout but it becames just bigger than the half of…
Thelastpolaris
  • 341
  • 4
  • 12
4
votes
1 answer

How can I inject JavaScript file into a WebEngineView page?

I'm adding a script tag to a web page once it's fully loaded in a WebEngineView, but it's silently failing somehow. I inject the script by invoking webview.runJavaScript with this code: var s = document.createElement('script'); s.src =…
WaltPurvis
  • 1,510
  • 12
  • 14
1 2
3
16 17