Skip to main content

Questions tagged [qml]

QML (Qt Modeling Language) is a declarative language that allows user interfaces to be described in terms of their visual components and how they interact and relate with one another. It is a highly readable language, JSON-like syntax with support for imperative JavaScript expressions combined with dynamic property bindings. It can be used to build fluid animated user interfaces that can be connected to any backend C++ libraries.

0 votes
0 answers
18 views

Qt/QML - Getting *qml* stack trace from Non UI thread is always crashing

In a certain QML app there is a problem that sometimes QML scripts hang UI thread for very long times, like 20+ seconds of UI thread not processing any incoming events from any source. In rare cases ...
maxpovver's user avatar
  • 1,600
-1 votes
2 answers
40 views

Swipeable button in QML

i wanna create a component which can slide a rectangle from left to right to simulate ON or OFF like a iOS left-to-right button to shutdown phone (https://youtu.be/qEJ5PerUqFw?t=42 second 40 like this)...
Bondrusiek's user avatar
0 votes
0 answers
12 views

QRhi uniform buffer re-usage

Is it correct that dynamic uniform buffers can only be used once per frame with the QRhi rendering layer (https://doc.qt.io/qt-6/qrhiresourceupdatebatch.html#updateDynamicBuffer)? For instance, this ...
Hyndrix's user avatar
  • 4,392
2 votes
0 answers
21 views

QML layout and padding working in Qt Design Studio but not Qt Creator with Python

I have the following QML code: import QtQuick import QtQuick.Window import QtQuick.Controls import QtQuick.Layouts Window { visible: true width: 300 height: 300 title: "Padding ...
bmitc's user avatar
  • 755
0 votes
0 answers
36 views

How to assign a value to the model property of a QML ListView instance in C++

While developing a dynamic layout, I had to implement ListView from qml file as QQuickItem instance in a C++ class, but there was a problem with assigning a value (inherited instance of ...
Artur Mangus's user avatar
0 votes
1 answer
29 views

How to pass an instance of an object called via QQmlComponent::create to an existing QML element in the layout tree

I am in the process of developing a GUI, and during the development process there was a need to pass a dynamically created element into an existing Qml layout. I am using the following method to gen ...
Artur Mangus's user avatar
0 votes
1 answer
49 views

how to fix this Error: qrc:/main.qml: No such file or directory

I'm developing a very basic QML GUI for a C++ project, but I'm having trouble adding file URLs to the program. I've tried using absolute paths, ./path, and ../path, but none of them work. Whenever I ...
Pouya Tavakoli's user avatar
0 votes
1 answer
28 views

ApplicationWindow - how to align content item strict between header and footer?

Simple example: ApplicationWindow { header: MyHeader { id: myHeader } footer: MyFooter { id: myFooter } ListView { id: myListView anchors.fill: ...
Dibo's user avatar
  • 1,169
0 votes
0 answers
15 views

Problem embedding qquickview into qlayout

I'm using multi-threaded opengl in my qml so qquickwidget is not an option, when I use qwidget::createwindowcontainer to manage qquickview and embed it into qlayout it works fine . but if I take it ...
黄滨滨's user avatar
0 votes
0 answers
38 views

TableViewColumn in Quick.Controls 2.15

I need to rewrite the view from QTableView to qml when using quick.controls 2.15 in qt 5.15 in quick 2.15. I have a c++ model, but I need to display them in a table, with the ability to display them ...
kira20's user avatar
  • 1
0 votes
1 answer
26 views

QML check the type of a property at runtime

I am trying to check the type of a property at runtime: Node { id: root property string foo property color diffuseColor ... } (because I am setting it dynamically from a JS object ...
fferri's user avatar
  • 18.8k
0 votes
0 answers
10 views

How to prevent adjacent delegates in a QML Flow from shifting when one expands?

I am working with a QML Flow layout in which I dynamically adjust the height of a delegate (Rectangle with id: zakaz) when a button is pressed. This expansion works as intended, pushing the delegate ...
Benjamin Gavrikovcky's user avatar
0 votes
0 answers
24 views

The system cannot find the specified path (Qt creator 13.0.1 with msvc_compiler 2019) version Qt 6.7.1

The system cannot find the path specified. jom: C:\\Project\\Config\\build-Desktop_Qt_6_7_1_MSVC2019_64bit-Release\\Makefile.Release \[release\\RPA_Config.exe\] Error 1 jom: C:\\Project\\Config\\build-...
Dhyanda's user avatar
0 votes
0 answers
47 views

"Error: The system cannot find the path specified during Qt build with jom"

/OUT:release\RPA_Config.exe @C:\Users\pawan\AppData\Local\Temp\RPA_Config.exe.26844.11344.jom The system cannot find the path specified. jom: C:\Users\pawan\OneDrive\Desktop\RPA_Config_Clone\build-...
Pranav Sonawane's user avatar
0 votes
0 answers
14 views

Qt Tool qmllint not working on imported C++ modules

I want to use qmllint on my Main.qml, which uses modules exposed from C++ side, such as the mainCtrls import and the mainControls keyword: import QtQuick 2.15 import QtQuick.Controls 2.15 import ...
Ironside's user avatar

15 30 50 per page
1
2 3 4 5
805