8,761 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
65
views
How do I fix LNK1218 ("warning treated as error") when building Qt 5.15.2 WebEngine on Windows?
I’m trying to build Qt 5.15.2 WebEngine (Chromium) on Windows to enable proprietary codecs.
I followed the instructions here:
https://github.com/OpenBoard-org/OpenBoard/wiki/Build-Qt-WebEngine-on-...
0
votes
0
answers
56
views
Dialog stays on all workspace without special settings
My development environment is Red hat 8.
Minimal reproducible example :
#include <QApplication>
#include <QMainWindow>
#include <QPushButton>
#include <QDialog>
int main(int ...
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 ...
0
votes
0
answers
123
views
How do I use Openssl 3 with Qt 5.15.19?
I have an application that still uses Openssl 1.1.1w. I need to update that to an OpenSsl 3 version. Switching to Qt6 seems like the best way to do that, however due to the nature of the codebase we ...
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 "...
0
votes
0
answers
109
views
Why does Qt::AutoConnection fail between threads to pass a QMap object but not for QString?
Using Qt 5 (specifically 5.15.18, but I doubt that matters).
I'm getting a run-time type not registered error when connecting between threads, but only when the connection is Qt::AutoConnection AND ...
0
votes
0
answers
49
views
QtActivity onNewIntent blocks Qt signal
I have an Android-app written with Qt 5 where I can read NFC-chips. Additionaly I am using some native Java functionality for updating (installing .apk) my application via Javas native ...
1
vote
1
answer
161
views
When creating a static const QString, should I use QStringLiteral?
When using Qt 5 and 6.
The intent of QStringLiteral is to (effectively) place the QString object into read-only data space and avoid initialization overhead during startup (as described here).
If I ...
3
votes
1
answer
101
views
SpinBox TextFromValue callback not invoked
I have a ListView with SpinBoxes as delegates. I control the SpinBoxes to and value properties with a model-binding. This works fine. To display a formated text for my SpinBox I use the textFromValue ...
3
votes
2
answers
107
views
How do I stop an event loop in a QThread?
I have a QThread with a while loop. I need to be able to stop that loop. I tried to emit a signal from the main thread connected to a slot in the QThread that sets a variable to true and thus ends the ...
2
votes
1
answer
113
views
How to achieve zero-copy rendering from Qt QPainter to dmabuf using shared EGL contexts?
I'm trying to implement a zero-copy pipeline that renders Qt QPainter content directly to a dmabuf framebuffer for display via DRM/KMS. My goal is to leverage QPainter's high-level drawing APIs (text, ...
0
votes
0
answers
55
views
Is it safe to read a QHash with multiple threads?
I have an object: QHash<long, QMap<long, QList<long>>> hash; During initialization, I add keys in the main thread, where each key corresponds to the ID of a worker thread on a one-to-...
0
votes
0
answers
49
views
Does QStandardItemModel take ownership of items when using appendRow()?
In my Qt application, I'm dynamically creating QStandardItem objects and adding them to a QStandardItemModel using appendRow():
auto* item = new QStandardItem("text");
model->appendRow(...
1
vote
2
answers
202
views
Custom mouse cursor in C++ using the Qt toolkit - constant flicker
I have implemented a custom cursor in C++ using the Qt 5.15 toolkit, as shown in this small test program containing three classes:
A mainwindow, a testwidget and a box.
The testwidget and box are both ...