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

Qt Quick / New Open GL API - Transparent Panels in OSX and similar

My question is conceptually similar to this question. But that question is targeted at the old QWidget API while I am asking about Qt's new Open GL (QWindow) API. So how can I enable the transparency of Panels on QWindow and especially QtQuick…
Itay Grudev
  • 7,055
  • 4
  • 54
  • 86
1
vote
1 answer

QtQuick: "StackView: You cannot push/pop recursively"

Getting this error message when running my QML application on Android. It's working fine in qmlscene, though. Code looks like this: main.qml: ApplicationWindow { property Component loaderPage: LoaderPage { onGotoPage: changePage(page) …
snøreven
  • 1,904
  • 2
  • 19
  • 39
1
vote
1 answer

Dynamically loaded QML-file in Tab will only be executed when Tab is shown

I'm creating Tabs in a TabView dynamically via var component = Qt.createComponent("file://tabcontent.qml")); tabView.addTab(component); However their code is not executed before I click on the Tab itself. How can I solve this?
Hedge
  • 16,142
  • 42
  • 141
  • 246
1
vote
1 answer

Using QtCreator 5.3 for Qt Quick UI project, how to link QML button resource to C++ function call

This is my first post on StackOverflow so please excuse any formatting mistakes I might have made. I'm building a Qt Quick UI project using Qt Quick Controls 1.1 and I have a simple Button in my QML code that I would like to call into my C++ action…
Steve
  • 13
  • 4
1
vote
2 answers

How do I cast QML items to corresponding C++ Item in Qt Quick

My question is best clarified by an example. I have QML with a Text{} item. In C++ I can get to this item and I have no problem using qobject_cast to turn anything into a QQuickItem*. But how do I turn it into the closest corresponding item so that…
Tod
  • 8,192
  • 5
  • 52
  • 93
1
vote
1 answer

Pop to specific item in QtQuick StackView

I am using Qt 5.2.1 on Android, and I have a main application window with code as below (the example is a bit contrived, but it illustrates accurately what I am doing): property Component mainMenuView: MainMenuView { onMoviesSelected: { …
caprica
  • 3,902
  • 4
  • 19
  • 39
1
vote
2 answers

ReferenceError in qt quick controls tabview

I have written a QT Quick program use TabView. When I click the botton b1 which is in Tabview, the program should call show_text() and print the text of b1, but it print "ReferenceError: b1 is not defined". Any suggestion will be appreciated,…
davy
  • 123
  • 1
  • 3
  • 8
1
vote
1 answer

initialize error of ComboBox : Cannot read property 'constructor' of undefined

When I try to initialize the model of ComboBox, weird error pop out test.pro # Add more folders to ship with the application, here folder_01.source = qml/androidTest folder_01.target = qml DEPLOYMENTFOLDERS = folder_01 #QMAKE_CXXFLAGS +=…
StereoMatching
  • 4,971
  • 6
  • 38
  • 70
0
votes
0 answers

ComboBox from QtQuick Controls 1 doesn't recognize flick

I customized ComboBox from QtQuick.Controls 1 using the following: QML ComboBox item DropDownMenu style The only problem I have now is that menu area (that drops down and shows delegates) does not seem to recognize flick gesture (though mouse wheel…
0
votes
1 answer

How do I set the Button.down color in QtQuick Qt6?

I've been following an older tutorial to learn about QtQuick. I've had to modify the tutorial in order to attain the correct behavior. So far, most of it is working, but I'm stuck on setting the color when a custom button is actually pressed. So…
pedwards
  • 413
  • 3
  • 9
0
votes
4 answers

How to create a Progress Bar in Qml with slant lines?

Hello , I am looking for some solution to create a progress bar in qml having slant lines. I dont having any snippet to share here, as I am not aware how to do so. Can anyone please guide ??
sidd
  • 33
  • 5
0
votes
1 answer

QML menu style only works in QtWidgets QApplication

I am running Qt 5.11.0 under Windows (I understand that it is very old but I cannot upgrade that embedded system). For some reason, QML Menu from QtQuickControls1 ignores its style if app is a QGuiApplication, but works if it is a QApplication (from…
Jack White
  • 896
  • 5
  • 7
0
votes
1 answer

How do multiple child items requesting focus get focus within a FocusScope type?

I'm new to QML and I'm confused by the FocusScope type. My understanding is that it's used to control the focus of part an application when multiple items are requesting focus. The documentation says: Conceptually focus scopes are quite…
0
votes
1 answer

Dynamic height of tableviewcolumn according to text length

hello I have the following problem I am working with qt quick control 1.4 because the tableview of 2.15 does not adapt correctly as I would like; the table overflows in height and my question is the following can you make a dynamic height and that…
Laito
  • 17
  • 1
  • 7
0
votes
1 answer

How can I save an image with OpacityMask applied?

I am working on a project where I want to save a thumbnail image of a rendered screen exactly as it's displayed, including with the application of an OpacityMask. The problem is that no matter what I do, it always creates the thumbnail image…
Edward
  • 6,964
  • 2
  • 29
  • 55