929 questions
Advice
0
votes
0
replies
21
views
Qt 6 QOpenGLWidget shows corrupted/stale texture during nested event loops (modal dialogs) when paintGL is interrupted mid-render
When a QOpenGLWidget is actively rendering complex scenes (e.g., a video graphics engine) and a modal dialog (QFileDialog, QMessageBox, etc.) is opened, the widget displays a corrupted/dotted/sparse ...
0
votes
0
answers
119
views
My QTextStream inputs and outputs won't work
IDE USED: QT Creator 19.0.2
So I have been following this YouTube video on how to do inputs and outputs using QT, when I followed along and laid out the code, when I pressed run it should normally ...
0
votes
0
answers
122
views
Qt6 GUI screenshot
I have inherited the 1st line below from Customplot for making a screenshot. It looks like qApp exists and is accessible, but both the pixmap and the screen are 'not accessible' according to my ...
1
vote
1
answer
116
views
Why does MouseArea react to hover events, even if the main component is disabled?
I have a component that contains some mouse interaction, that I disable as long as it is inactive in the context of my application. However, the MouseArea that is inside seems to still react to input. ...
1
vote
1
answer
143
views
How to handle Notify signal with QDBusConnection::sessionBus().connect()?
With Qt5 and Qt6, I'm trying to handle the following signal:
QDBusConnectionPrivate() got message (signal): QDBusMessage(type=Signal, service=":1.10", path="/ca/desrt/dconf/Writer/user&...
Advice
0
votes
2
replies
109
views
Multi-word autocomplete for custom IDE
I'm trying to create a simple code editor for an old custom programming language used by a single Company's product, as part of an effort to make some custom tools to avoid using the Company's ...
Advice
0
votes
1
replies
48
views
How to Set Up Qt6 Kits in Qt Creator for TI AM437x (Unable to Select Kit)
I have completed porting the Linux kernel on a custom board based on TI AM437x.
The kernel version is 6.12.49, and I am using the TI Processor SDK.
Now I am trying to develop an application using Qt (...
0
votes
0
answers
58
views
An error occurred while building a new project in Qt6
Create the application according to the steps, and then when building and running, the following error occurs,use
Windows 11
Qt Creator 19.0.0
Qt6.11.0
CMakeLists.txt file and Debugging and running ...
0
votes
1
answer
57
views
How to create an app icon from a file in a python3 qt6 app?
Like the title says. I have a python3 tool that uses the Qt6 libraries to display windows on my MacOS machine and I would like to use a different app icon.
Everything I have found talks about ...
0
votes
0
answers
47
views
Qt6 WebEngine: js: requestStorageAccess: Permission denied. - Need to enable access
I have a very basic web browser in Qt6. When I go into e.g web pages such as https://youtube.com or https://play.geforcenow.com, I will get this message.
js: requestStorageAccessFor: Permission denied....
1
vote
1
answer
63
views
HorizontalHeaderView not displaying headerData
I am trying to create a TableView in QML (Qt 6, Qt Quick Controls 2) that looks similar to the following layout:
I have the following methods in my LatticeTableModel:
QVariant LatticeTableModel::...
0
votes
1
answer
62
views
In QML, why does PointHandler in lower-z item activate despite DragHandler in higher-z item?
I have two overlapping rectangles:
The red one (higher z) has a DragHandler with dragThreshold: 0.
The blue one (lower z) has a PointHandler.
When I click the overlapped area, I expect only the red ...
2
votes
1
answer
99
views
Qt6 vs Qt5: Qt.createQmlObject() broken with inline components
I am migrating my application from Qt5 to Qt6 but it seems Qt.createQmlObject() does no longer work with inline components.
I load QML from ZIP archives at run-time and I have C++ implementation of a ...
3
votes
0
answers
145
views
Camera not found when application run from shared folder
I have trouble with accessing cameras if my application is located on a share.
When I run my application locally it shows the camera, but when the same application is run on a shared folder, the ...
1
vote
0
answers
69
views
Unable to get internal image elements rendered with Qt6.9.2 QSvgRenderer to maintain aspect ratio
A little background. I had been using Qt5.15 in conjunction with WebKit to do svg renderering to .png images in the past, and decided to update to Qt6. As part of this decision, I also wanted to get ...
1
vote
1
answer
80
views
QTextEdit goes under keyboard when editing on Android
I'm trying to make a simplistic text editor (or notes-app clone), for desktop and Android. As a minimal reproducible example, I have a central widget, with a QVBoxLayout, that contains a QTextEdit.
On ...
3
votes
1
answer
141
views
Anchor to parent from inside a delegate
I have this simple ListView with a delegate in which I use a Rectangle as root item. I simply want to anchor the Rectangle to the parent's left edge.
ListView {
id: taskListView
anchors.fill: ...
0
votes
0
answers
192
views
PySide6 QOpenGLWidget flickers even with minimal example inside a layout
I am experiencing flickering when using QOpenGLWidget with PySide6, even with a minimal setup.
Environment:
PySide6 (tested with 6.5/6.6)
Python 3.x
OS: Linux/Windows (happens on multiple systems)
...
4
votes
1
answer
293
views
How to disable accessibility features in a Qt app?
The issue: You create an Android Qt C++ app. When the user has any accessibility features enabled, the app lags, it's so slow that it's unusable and finally crashes.
In the associated Android log you ...
4
votes
1
answer
247
views
How to intercept a markdown file and display as HTML?
As part of my application, I want to use QWebEngineView to display the contents of a local markdown file as an HTML page. Local files will end in '.md'.
In Qt version 6.9 I wrote the following code to ...
1
vote
1
answer
160
views
Failed to load old Qt project Target "Qt6::QmlIntegration" not found
I recently got a new PC and tried to load up an old Qt project that I was playing around with a while ago but have not managed to build it properly.. Starting to think upgrading to Qt6.10 would be ...
2
votes
1
answer
172
views
Qt6 Android - How to build multi ABI APK or AAB?
I’m trying to create a multi-ABI Android APK using Qt6.10 with no success.
Some info:
When I build the APK for arm64 my app works fine in arm64 devices.
=> Kit used: “Qt 6.10.1 for Android arm64-...
0
votes
0
answers
37
views
QtQuick.Core module not found
I installed Qt 6.10.1 via online installer (Ubuntu 24).
I try to import QtQuick.Core module and the IDE says module not found.
According to my research, the Core directory has to be placed inside this ...
4
votes
2
answers
160
views
Qt mouseMoveEvent does not work with QColumnView
I have a QColumnView with a QFileSystemModel attached to it, and I am trying to get information on what file is being hovered over in that model view.
I do have mouse tracking enabled, however it ...
1
vote
0
answers
122
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:
**//...
0
votes
1
answer
100
views
Yocto Qt Toolchain Generation for STM32MP1
Hardware context :
stm32mp157f-dk2 eval board
Software context :
Ubuntu 22.04.5 LTS
Yocto Release 5.0 LTS Scarthgap
Layers :
- poky
- meta-openembedded
- meta-qt6
- meta-st-stm32mp
...
Best practices
2
votes
1
replies
135
views
Issue with TextField and TextInput Keyboard on Android in Qt 6.10.0
when user tap on a TextInput or TextField, the Android keyboard opens, but typing doesn’t insert any characters into the input field. They can only delete existing text, and new text cannot be entered....
4
votes
1
answer
100
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
112
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 ...
5
votes
1
answer
142
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 "...
1
vote
0
answers
207
views
Vs code with Qt6, ERROR qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "C:\tools\vcpkg\installed\x64-windows\Qt6\plugins\platforms"
I am new in C++ and Qt, I want to develop a simple app to practice C++. I am developing this simple app on VS Code using Qt6. Any time I try to run a simple code like the below one, this error message ...
0
votes
0
answers
70
views
Gstreamer Qt6 Mutlimedia Video stops 3 secs before end
I am working with Qt 6.8 (QtWidgets) on an embedded Linux/Yocto device. I want to play a video in my application. It should be possible to play, pause, seek 5 sec forward, seek 5 sec backward and load ...
2
votes
1
answer
398
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 ...
0
votes
0
answers
168
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 ...
2
votes
0
answers
147
views
C++/Qt: QODBC always ignores first row
I am doing an app for a client and he wants to read data from .xlsx, .csv and .xls.
For CSV files, I have already created a data parser, and for XLSX files, I had used QXlsx.
With large files (>1M ...
1
vote
0
answers
255
views
CMake: QML warnings on Ubuntu 25.04: "link target it defines (Qt6::qtquick2plugin) does not exist in the current scope"
I'm trying to build Noteahead MIDI tracker (https://github.com/juzzlin/Noteahead) on Ubuntu 25.04 and getting a lot of CMake warnings like these:
CMake Warning at /usr/lib/x86_64-linux-gnu/cmake/...
2
votes
1
answer
276
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 ...
0
votes
0
answers
80
views
How can I test trayicon interactions on the command line in Linux in a headless CI/CD environment
I currently have a CD/CI pipeline that tests my application by using Xvfb to start a framebuffer and xdotool to focus on the window and send a ctrl+q. My application is set to exit on ctrl+q:
#!/...
0
votes
0
answers
189
views
Usage of external libraries in C++ module
I'm starting the first pet project with external library (Qt) and trying to use modules instead of traditional headers. I have Qt in my system (Linux) in .h/.cpp files all is fine. But in my .ixx ...
1
vote
1
answer
73
views
TableView and HorizontalHeaderView column widths do not match, even with syncView property set
I'm using Qt Quick (Qt 6.8) with a TableView and a HorizontalHeaderView. I’ve set up syncView so that the header and table should stay in sync:
HorizontalHeaderView {
id: header
Layout....
3
votes
1
answer
414
views
Building Qt6 with g++ 15 and std c++23
I am trying to build Qt 6.8.2 with g++ 15 and std standard c++23. This is my configuration command:
$ export GCC_CC=/usr/bin/gcc-15 \
GCC_CXX=/usr/bin/g++-15 \
GCC_CFLAGS="-O2 -fPIC" ...
1
vote
1
answer
246
views
Howto emit signal org.freedesktop.DBus.Properties.PropertiesChanged with QDBusAbstractAdaptor derived class
I have a qdbusxml2cpp generated class, which is derived from QDBusAbstractAdaptor.
When I change the content of a property, I would expect that either the PropertiesChanged signal is emitted or that I ...
1
vote
0
answers
89
views
windowsvista style causes hover animation to 'flicker' or 'jitter'
When I set 'windowsvista' as the style, hovering over widgets causes them to flicker. See linked GIF for details:
Flicker issue when hovering
Here is the code to reproduce it in a stock standard fresh ...
0
votes
0
answers
28
views
Qt6 for android build error: undefined symbol: AudioCapture::unregisterBandsNumber(int)
I’m trying to build my Qt6 project for Android, but I’m running into linker errors related to undefined symbols. The same project builds fine on Windows, Linux, and macOS, but when targeting Android, ...
0
votes
0
answers
52
views
How to detect full focus loss in a custom multi-field editor in QStyledItemDelegate?
I am creating my own delegate inheriting from QStyledItemDelegate because I want to create a custom delegate editor. In this delegate, I create a grid in which widgets are to be placed in the window – ...
0
votes
0
answers
160
views
QNetworkRequest is converting header names to lowercase for case sensitive service
I'm connecting Tank IP Camera (IPC) API to my windows application with Qt C++. IPC uses basic authorization. I'm using QtNetwork library for HTTP client connection, Qt 6.8.3 with C++17.
I tested the ...
3
votes
0
answers
70
views
Finding config files on Android deployments
I am trying to access a simple config file (Config.conf) from my Qt6 Android app.
It was suggested I add:
android {
my_files.path = /assets
my_files.files = $$PWD/etc/Config.conf
INSTALLS += my_files
}...
0
votes
1
answer
157
views
pyinstaller not adding matplotlib error, not linking qt6 deps warning
I have a Python application. And I want to distribute as .exe file. It's quite small application. Here are all my deps:
PyQt6==6.9.1
PyQt6-Qt6==6.9.1
PyQt6_sip==13.10.2
qt-material==2.17
pyinstaller==...
0
votes
0
answers
133
views
In Qt6, how do you set the encoding of a QTextStream to "EUC-JP"?
How do you set the encoding of a QTextStream to "EUC-JP" ?
The setEncoding function uses this enum:
class QStringConverter : public QStringConverterBase
{
public:
#endif // Qt 6 compat for ...
0
votes
0
answers
130
views
Stopping Screen timeout with Qt6 on Android
Could not get anything to work apart from adding:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
To the QtActivity.java file onCreate method. Which does work. Not an elegant ...