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

Mask from pictures, crop image behind cursor

I have a basic background from a blue image with a transparent background (PNG), how can I make a different background from the image after the arrow? I tried the option using a mask, but it cuts the picture either in width or in height, this does…
0
votes
1 answer

How to give border-color to a row in TableView with QT Quick Contol 2.0?

Table1 Item { id: control TableView { id: table1 delegate: Rectangle { color: control.selected === row ? "pink" : "white" …
kaedeair
  • 1
  • 2
0
votes
0 answers

QtQuick.Controls 2.x context menu for text edit

Back there, in QtQuick.Controls 1.2 there was a TextField component which (through some arcane magic of inheritance and private implementation details) possessed an EditMenu component which in turn somehow provides the default editing menu on…
ratijas
  • 704
  • 7
  • 14
0
votes
0 answers

How Reuse My Qt Quick Controls in Multiple project like c++ library?

I have read article Adding Libraries to Projects for Reusing my c++ classes in my diffrent qt quick applications, I have many Custom qml types Like MyCustomGridView.qml and I using this in many project But I have to copy the file in my new Project…
mohsen
  • 1,763
  • 3
  • 17
  • 55
0
votes
0 answers

Qt Abstract Model - flags() function never called

I'm currently working on a Qt Quick application in which there is a TableView showing data from a backend model written in C++ (it is a custom model derived from QAbstractListModel). I want to have to possibility to set which rows can be selected by…
Brutus
  • 790
  • 3
  • 10
  • 27
0
votes
1 answer

QML FileDialog Assertion failed

I'm trying to use the FileDialog. but when I browse at the second time I got a crash with information is "Gtk: Error assertion failed: (cancellable == data->button_data->cancellable)" How do I address this problem?
0
votes
1 answer

Mutually exclusive menu items in Qt Quick Controls 2

I want to specify mutually exclusive items in a submenu, using Qt Quick Controls 2. How to accomplish this? I suspect it somehow involves ActionGroup, but I don't see how a submenu can reference ActionGroup. In the following main.qml I've defined an…
Tomasso
  • 693
  • 2
  • 9
  • 17
0
votes
1 answer

Binding Loop Error While Trying to Increment Progress

I am trying to show incremental changes on a progress bar by clicking a mouse area. The code below compiles and changes the value of the progress bar from 0 to 0.25 after clicking the mouse area. But the change is not permanent. I am trying to…
CrippledTable
  • 784
  • 5
  • 20
0
votes
3 answers

Handling modifiers in QtQuick Shortcut

I have a simple QtQuick application, say import QtQuick 2.12 import QtQuick.Window 2.12 Window { visible: true width: 640 height: 480 Shortcut { sequence: "i" context: Qt.ApplicationShortcut onActivated: { …
0
votes
0 answers

QML import and Java determination errors and warnings when building by the Arm7 kit

I installed a great bunch of SDK packages and went for building the APK file of a QML application using the Build button for the Arm7 kit on Qt Creator 4.8.0 on my Windows machine. There're, unfortunately, a number or errors and warnings which are…
Franky
  • 1,181
  • 2
  • 11
  • 33
0
votes
1 answer

How to dynamically update a child combobox from parent combobox

I have a QML app that has two combo boxes, one is parent (country) combo box, other one is child (city) combo box. When selecting a country, the child combo box should have cities of the country at the same time. I have a code that first combo box…
ercishli
  • 25
  • 1
  • 7
0
votes
2 answers

Destroy QT QML windows once done

Newbie to QT QML and sorry if its just very simple ask. I have simple piece of code that demonstrate WebEngine Qt Quick example. /* runtime.qml*/ import QtQuick 2.1 import QtQuick.Controls 1.1 import QtWebEngine 1.1 ApplicationWindow { width:…
Milan
  • 1,447
  • 5
  • 19
  • 27
0
votes
1 answer

QML SplitView: How this control handle their children items into internal item?

I looking into source code of SplitView (%QT_SOURCE_PATH%\qml\QtQuick\Controls\SplitView.qml) and noticed that it used 3 Items to maipulate splitters and items: Item { id: contents visible: false anchors.fill: parent } Item { id:…
MaxQwerty
  • 43
  • 8
0
votes
0 answers

I can't create a qt quick control project , what I have to do

I have some problems with at creator while creating a qt quick control project. I have downloaded full version of qt, but when I wanna create a new qt quick control, I can't do this, because while creating a new project in kit selection there's no…
0
votes
2 answers

It is possible to set the CSS white-space of a QtQuick Label to pre-wrap?

I have a QtQuick Label in a QML file like so: import QtQuick.Controls 1.3 as Controls Controls.Label { id: lbl text: "This is some bold text with extra white space" } If the text property of my label contains any HTML,…
MusiGenesis
  • 74,184
  • 40
  • 190
  • 334