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

SQL usage in QML - TableView

I would like to call data from my local database (diaBaneData.db) into a TableView in QML. But I am struggeling with the c++ part right now. There is no problem with the output of my database with the "model"-Version from main.cpp. When using the…
F-Kae
  • 155
  • 1
  • 2
  • 14
3
votes
1 answer

How to access QML ListView delegate items from C++?

In Listview, I have popping up 100's of items using "delegate", assume that, listview already displayed populated value. Now I would like to extract already displayed values in QML List view from C++. How to achieve this? Note: I can not access…
Ashif
  • 1,652
  • 14
  • 30
3
votes
1 answer

Image size different after second click on it

I have following minimal working example, taken from my current project: import QtQuick 2.5 import QtQuick.Window 2.2 import QtQuick.Layouts 1.1 import QtQuick.Controls 1.4 Window { visible: true width: Screen.width/2 height:…
KernelPanic
  • 2,328
  • 7
  • 47
  • 90
3
votes
1 answer

Trying to center items programmatically in a ListView

I would like to have centered items in QML ListView and therefore I've added following code of my ListView: import QtQuick 2.0 import QtMultimedia 5.5 import QtQuick.Controls 1.3 import QtQuick.Extras 1.4 import QtQuick.Layouts 1.2 import…
KernelPanic
  • 2,328
  • 7
  • 47
  • 90
3
votes
2 answers

Items inside TabView/Tab are not accessible

Suppose we have a QML file like the following: Window { Component.onCompleted: rect.color ="green" TabView { Tab { Rectangle { id: rect color: "white" } } …
folibis
  • 12,048
  • 6
  • 54
  • 97
3
votes
2 answers

QML TextArea scroll events

Is there a way to know when TextArea scroll has reached the top or bottom? I want to implement dynamic text loading in a chat client: when the user scrolls to the top, more text is added to the document. Something like this (pseudo-code): import…
psyched
  • 1,859
  • 1
  • 21
  • 28
3
votes
1 answer

Qt Quick 2.2 Application: Choosing component set step

I am creating a new Qt Quick application in Qt 5.3 for the first time. I would like to have the latest controls available. When prompted to select a "Component Set" my dropdown options are : Qt Quick 2.0/2.1/2.2, and Qt Quick Controls 1.0/1.1. What…
Rachael
  • 1,965
  • 4
  • 29
  • 55
3
votes
1 answer

Using dialogs in QML

What if at some moment of time I need to get user input by calling dialog window or something like that. What is the best way to implement this using QML? Any analogs of prompt in js?
Bolein95
  • 2,947
  • 2
  • 26
  • 31
3
votes
1 answer

Adding Functionality / behavior to a QML Slider.

Is it possible to create a subclass of a QML element? I was trying to create a custom QML slider (as opposed to the one available in QtQuick.Controls). So I wanted to look and feel to remain the same while the range itself to behave logarithmically…
OneRandomCoder
  • 87
  • 2
  • 11
3
votes
1 answer

Aren't there a Qt control styles for android?

Aren't there ready made Android styles to use with Qt quick controls or I have to design them on my own?
Baso
  • 1,354
  • 4
  • 19
  • 41
3
votes
1 answer

Dynamic creation of a button in QML

With qt 5.2, I'm trying to add dynamically a simple button like this : ApplicationWindow { id: appWindow width: 640 height: 420 minimumHeight: 400 minimumWidth: 600 function addButton() { var obj =…
Stef
  • 3,691
  • 6
  • 43
  • 58
2
votes
0 answers

Use Qt Quick Controls 2 UIs in Qt Installer Framework

I want to make a Qt Quick Controls 2-based installer. Doing so from scratch will take several hours from my time, so I want to use the Qt Installer Framework. It's possible? So far I have customized wizard pages using style sheets, and even replace…
lateus
  • 371
  • 4
  • 15
2
votes
1 answer

How Use ListModel with SwipeView?

I have a c++ class that i registerd it in qml , and this class have an model that was inherited from QAbstractListModel,Now I want this model with a SwipeView Manager { id: manager } SwipeView { id: sv model:manager.listModel…
mohsen
  • 1,763
  • 3
  • 17
  • 55
2
votes
1 answer

How to convert horizontal menu tab to vertical in QML?

I want to convert a horizontal menu tab to vertical menu tab, I wrote the following code: TabView { id: frame anchors.fill: parent anchors.margins: 4 Tab { title: "Tab 1" } Tab { title: "Tab 2" } Tab {…
Janilson Duarte
  • 31
  • 1
  • 10
2
votes
1 answer

Error when trying to import QuickControls

I want to make a project with Cmake in Ubuntu. My CMakeList is: cmake_minimum_required(VERSION 2.8.3) project(client_ros) find_package(catkin REQUIRED COMPONENTS roscpp std_msgs qt_build ) file(GLOB_RECURSE SOURCES RELATIVE…
amir sharifi
  • 31
  • 1
  • 4