Questions tagged [qt5]
Questions specifically for version 5.x of the Qt library. If your question applies to other versions of Qt, use the tag [tag:qt4] or [tag:qt3]. It is recommended to use with the tag [tag:qt].
8,769
questions
0
votes
1
answer
110
views
Linux QT-based applications are core dumping with IOT instruction (core dumped)
Environment: Ubuntu 22.04 + Deepin PPA
My qt-based applications are aborting, initially I thought only Virtualbox was messed with some kernel or dependencies. Then deepin-screen-recorder too and kate ...
0
votes
1
answer
191
views
Qt 5 project won't compile in Qt 6 despite core5compat and QT_DISABLE_DEPRECATED_BEFORE
My computer has recently undergone a fresh install on Debian 12 after some mayhem in updating Ubuntu.
I reinstalled Qt Creator and Qt6.6. I opened several old projects that used to work under Qt5....
0
votes
0
answers
87
views
What is the IID in Q_PLUGIN_METADATA(IID "...") and why do I need it
I am currently working on QT Plugins and came across the macro Q_PLUGIN_METADATA. Here you have to define an IDD. Many examples use "QQmlEngineExtensionInterface_iid" to declare the IID but ...
0
votes
1
answer
102
views
How to resolve Yocto build error for Glib-2.0 for Qt?
I'm building an image using Yocto for my toradex imx8 board with my QT program. But when I'm running "bitbake displaymod(image name)" I'm getting the following error:
ERROR: displaymod-1.0.0-...
2
votes
1
answer
119
views
How could I make a Expand All / Collapse All function for my custom QML TreeView?
For a Qt project based on Python for the backend and QML for the frontend, I made a custom component used to display data as a tree structure. This component uses a ListModel, the name of the field in ...
1
vote
2
answers
37
views
QGraphicsView and QSplitter: collapsing and unfolding area does not restore image
I am trying to create a basic program that has two side-by-side panels: one with image, and one with text. I am using splitter to be able to resize both areas up to the point of completely collapsing ...
1
vote
2
answers
83
views
Get undefined for receiving a signal with parameter from C++ in QML
I am trying to receive a signal with parameter in QML from C++ QObject class.
The signal looks be triggered but parameter got undefined:
myclass.h
class MyClass : public QObject
{
Q_OBJECT
public:
...
1
vote
0
answers
74
views
Add qml module with plugin in qt resource
We have a qmldir declare a module contains qml files which are put inside resource file. The module has plugin which is in a directory, but not resource.
Before add qmldir and qml files into resource, ...
0
votes
0
answers
45
views
Unable to Add Monitored Item for EventNotifier Attribute in QOpcUa Library - BadIndexRangeInvalid Error
I'm currently working on integrating OPC UA functionality into my application using the QOpcUa library in Qt. I'm attempting to add a monitored item for the EventNotifier attribute of a specific node ...
0
votes
0
answers
31
views
qmake installs project in /opt instead of /usr/local
I'm on Ubuntu 22.04. I have a project which I build from the command line:
qmake -qt=qt5
make
sudo make install
I expect it to install it in /usr/local/bin, but it puts it in /opt/QFtpServer/bin/:
/...
0
votes
0
answers
23
views
Visual Studio QT Tools generate language files for all projects in solution
I have a Visual Studio solution with multiple QT projects in it (Visual Studio QT tools). I want to generate one .ts file per language for the entire solution, but the QT tools lupdate command only ...
0
votes
0
answers
24
views
QStandardPaths: which StandardLocation is best for log data
I have a cross platform application written in Qt.
I used QStandardPaths::locate() to figure out where to write various config/data items of the app. The application is run by an individual user (aka. ...
1
vote
0
answers
87
views
Can not play video with cmake but can with qmake
On Windows 10,
after installing the video codecs with
winget install CodecGuide.K-LiteCodecPack.Basic
Using QtCreator, I can build and run the qmake project and it will play the video,
https://file-...
0
votes
0
answers
57
views
Qt6 custom plugin cannot be loaded
I am working on upgrade our lib from QT5,12 to Qt6.5
And I still build our plugins using Qmake.
After compile our plugin and install the plugin using bitrock, I got the error below:
loading error
The ...
0
votes
0
answers
237
views
How to solve the error Project ERROR: failed to parse default search paths from compiler output
I downloaded the QT 5.12 offline installer for mac os. Everything went well. I created a project for the desktop, the project created all the files .pro, .cpp, .h ... . The Clang compiler. I received ...