12,152 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
62
views
Is there a way to get the QML engine within a registered C++ QML type object?
If I use a C++ object's property from QML like this:
class Cpp
{
...
Q_PROPERTY(... aProperty READ getAProperty
...
... getAProperty()
{
// which engine called me?..
}
};
// ...
1
vote
0
answers
25
views
Can we do Easing.BezierSpline animation when initial and final values are equal or almost equal?
In a QML script, I want to animate a real-valued property y
according to a cubic bezier spline in time,value space.
The spline is given as an input sequence of [time,value] control points
[[t0,y0], ......
1
vote
0
answers
23
views
QML StackView navigation issue with dropdown menu (wrong back stack + slow transition)
I’m using StackView in QML for screen navigation. Normal navigation works fine when moving sequentially (Dashboard → Screen 1 → Screen 2, etc.).
However, I also have a dropdown menu on the Dashboard ...
0
votes
1
answer
33
views
Can "Behavior on" syntax be used with a custom Animation type?
I would like to learn how to implement custom drop-in replacements for SpringAnimation and SmoothedAnimation, that can be substituted into the "Behavior on" statements in any of the simple ...
1
vote
1
answer
59
views
In QML, startSystemResize does not work on macOS
I am developing a frameless window using QML and Python 3.13.8, PySide6 and QtQuick. I work on macOs Sequoia 15.2.
I want the borders of the content area to be shifted from the main window so I add ...
1
vote
1
answer
46
views
Horizontal ScrollBar not visible in ScrollView
I want a custom horizontal ScrollBar in ScrollView but for some reasons, it not appearing as well as not functional
import QtQuick
import QtQuick.Controls.Basic
Window {
width: 640
height: ...
0
votes
0
answers
89
views
Phantom white box whilst using Application Window and Windows 11 Mica background on QML, qt 6.10.1
I've been experimenting with applying a Windows 11 Mica background effect to a QML Application using Windows 11 24H2 with Qt 6.10.1.
The mica effect works, but there's a white box in the Application ...
3
votes
1
answer
129
views
Efficiently passing QList from C++ to QML with property bindings and array syntax
Suppose I have a C++ object called MyCppComponent that takes input from QML and outputs an array of QString. The scheme looks like this, first the intended use:
MyCppComponent {
id: ...
2
votes
1
answer
61
views
Surprising mouse behaviour when TableView overlapping
Given this code:
import QtQuick
import Qt.labs.qmlmodels
Window {
width: 640; height: 480; visible: true; color: "silver"
FocusScope {
id: bottomScope
anchors....
0
votes
2
answers
73
views
Buttons of irregular shape in QML
I need to make a collection of buttons of irregular shape -- similar to a puzzle where each piece is a button. They do not overlap, do not necessarily cover the whole window and may have gaps. In ...
1
vote
1
answer
46
views
dynamic qml object creation does not set properties
I would like to create a dynamic keyboard with 9 keys (nine), and I have created a JavaScript code that should create the buttons and place them in a 9x9 grid:
for (var row = 0; row < 3; row++) {
...
1
vote
0
answers
69
views
An error occurred when registering a C++ class using QML_ELEMENT: QQmlApplicationEngine failed to load component
I wrote a simple example while learning QML and CMake. The main purpose is to demonstrate how to use `qt_add_qml_module` and how to register C++ classes in QML.
the key code is as follows:
**//...
4
votes
1
answer
85
views
Declare nested QML enum
I have a nested Item where I want to declare an enum. How can I access the enum from the parent Item? I dont want to declare the enum in the outer Item, because it belongs to the nested/inner Item. I ...
2
votes
1
answer
92
views
TextInput on SpinBox with custom inputMask
I have a SpinBox with a custom TextInput as contentItem. I want it to display a quantity, so it want to display something like "10 / 20 pc." for example. The minimum value is always 1, the ...
4
votes
1
answer
130
views
Property binding strange behavior with QSettings
Update below
I have a strange behavior with a property binding in my application. When toggling the expanded property of my layout, the ColumnLayout is not resizing, and the space of the button "...