12,147 questions
4
votes
1
answer
64
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 ...
4
votes
1
answer
121
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 "...
0
votes
0
answers
98
views
How to use CuteKeyboard (Free virtual keyboard) in Qt 6.8
I want to use the following Virtual Keyboard library in a Qt QML application.
https://github.com/amarula/cutekeyboard/
The plugin and application builds successfully, but when I start the application ...
0
votes
0
answers
49
views
CMake files for Qt6QmlTooling not found despite installing all prerequisites from Debian repositories and the Qt installer
I'm trying to deploy my QML application to android_x86_64 using qt-cmake. I've installed all of the relevant packages from both the Debian package repositories and from the Qt Online Installer, ...
1
vote
1
answer
91
views
What's the actual difference between Qt.createComponent() + component.createObject() and Qt.createQmlObject()?
As far as I know, they both do the same thing: create a QML element and place it in the hierarchy of QML elements. My question however, is: what benefit do you gain from using one over the other? ...
2
votes
1
answer
83
views
Qt6 - Clipping a child rectangle to a parent rectangle with a radius using MultiEffect QML type
I am trying to make the first image, look like the second image
The goal to is to clip the green child rect to match the inside radius and edge bounds of the parent rect. Unfortunately, the clip ...
1
vote
1
answer
92
views
QML Repeater delegates display correctly but C++ ViewModel getWord() returns incomplete empty — what am I missing?
I’m working on a QUL / Qt Quick Ultralite application (targeting ESP32, using QUL 2.9.0) where I have:
A CharacterSelectors.qml component that uses a Repeater to render multiple character-selector ...
1
vote
1
answer
115
views
How do I properly import or use XMLHttpRequest in QML?
For context, I'm trying to use XMLHttpRequest in QML to fetch some data from a site. I will then parse that JSON and do whatever is needed, but that's not the issue. Specifically, the issue is that ...
0
votes
2
answers
101
views
Qt QML on VS Code complains about having correct corresponding revisions
The Qt Qml extension on VS Code keeps reporting:
/usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick.2/plugins.qmltypes:(row):(column): Meta object revision and export version differ.
Revision (x) corresponds ...
1
vote
2
answers
67
views
Can't change the color of text in ComboBox Popup dropdown menu (Qt QML)
I'm new to QML and I want to change the color of text in dropdown menu based on the the mouse cursor position (make text white when mouse is not pointing at it, so it is more visible), but seems like ...
3
votes
1
answer
95
views
QML doesn't delete default values of component properties
I have a QML component with a property and a default value. If I instantiate this component and overriding the value of the component, the previous, default value is not destroyed.
Example:
The QML ...
1
vote
2
answers
128
views
QML ListView flicking with fixed header
I want to have a QML ListView with a header that stays in place when the items are flicked or scrolled.
To achieve this, I have set the headerPositioning to ListView.OverlayHeader and changed the ...
0
votes
1
answer
101
views
How can I resolve the error: module "QtCharts" is not installed? [closed]
I tried to run the following code, but I got the error: module "QtCharts" is not installed.
import QtQuick 2.15
import QtCharts 2.15
Rectangle {
id: root
width: 1392 * scaleFactor
...
0
votes
0
answers
56
views
XWayland surface detection in a QtWayland compositor
I'm trying to integrate rootless XWayland into the "minimal-qml" QtWayland compositor to understand how XWayland works. I've chosen this example because it features XDG-shell and that is the ...
0
votes
2
answers
160
views
QML + OSM: Loading Offline Tiles from Local Drive
I am struggling to get Qt/QML to use downloaded tiles from local drive. The map is always generated with online tiles and not my local files.
I looked at many other posts but none of them worked for ...
2
votes
2
answers
167
views
QML: Shadow around an Item
Trying to implement shadow with MultiEffect like this:
MultiEffect {
anchors.fill: item
source: item
shadowEnabled: true
shadowColor: "#9B9B9B"
...
0
votes
0
answers
30
views
ERROR in Behavior DragHandler and PinchHander QML
I launched the Qt example "PointerHandlers" map.qml
And I found that after I performed the pinch movement and released one finger, the square for some reason changes its position
You will ...
1
vote
2
answers
118
views
QtQuick curve with rounded corners
I'm trying to create a spline in QTQuick using a ShapePath component, however I'm a bit lost and don't know where to start. The following gif and images are a reference for the result that I'm looking ...
2
votes
1
answer
62
views
Find position of delegate in QML
I have an QML GridView that is displaying items from a model. A separate overlay needs to know the screen positions of the items within that GridView. However, I am having trouble accessing the ...
0
votes
0
answers
40
views
print available qml types
any ideas how to get a list of available QML types
declared in an unqualified namespace via Import
as well as declared in the current document via component
it would be most convenient to get not only ...
1
vote
2
answers
204
views
Qt6 MultiEffect qml Type : cannot set a larger mask than the source item
I want to customize a ProgressBar so it looks like this:
.
I need to crop the internal "light orange" rectangle so it fits in the orange background. I use MultiEffect to do that, but I can't ...
1
vote
1
answer
180
views
How do I correctly use QtCharts in a Qt Quick project? (QML works in qmlscene but fails in app)
I'm trying to use QtCharts (specifically ChartView, PieSeries, etc.) in a Qt Quick project using Qt 6.9 with MinGW on Windows.
Everything works perfectly when I run the QML with qmlscene, but as soon ...
0
votes
1
answer
169
views
How in a nested gridview expose a property of a function in qml
In the below example of code there is a GridView id:mainGrid nested in a ListView id:pageList which is the initialItem of the StackView id:stackView.There is a Function which defines the point ...
0
votes
0
answers
43
views
In QML, the column width of TabelView cannot adapt to the window width
I attempted to display a table in the window. My table has a total of 4 columns. I hope the column width of the table can be more adaptive to the width of my window (the window width will change), ...
1
vote
0
answers
65
views
Qml Canvas draw QImage
My task is to transfer what is drawn in a user canvas to a QImage. In this case, the QML canvas must be created dynamically, since there can be many QImages.
I need to implement this code:
QList<...