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
3
answers
65
views
C++ with Qt5 : lock a common mutex before calling the actual override implementation of a method
I have an abstract class like this :
class Thing
{
public:
Thing();
virtual ~Thing();
static QMutex s_mutex;
virtual void load() = 0;
virtual void translate() = 0;
virtual ...
0
votes
1
answer
13
views
Non-symmetric mutex
I have an unknown number of processes that create independent data, and one function that modifies all existing data. I need to be able to prevent the modification of data when it is being created (or ...
0
votes
2
answers
49
views
The signal emmited from UnixDomain datagram socket server running on a QThread never received
The Files which I've created
I've created WorkerThread class extended QThread as follow:
// https://stackoverflow.com/a/14546167/11073131
#ifndef THREAD_H
#define THREAD_H
#include <QThread>
#...
0
votes
0
answers
39
views
Writing a theme manager for QML 5 application that uses the Material theme benefits while it can be extended
I want to implement a ThemeManager component that uses the Material theme inside while it is extensible via adding properties.
I have two files for my custom themes:
CustomDarkTheme.qml:
import ...
3
votes
1
answer
57
views
MiterJoin is ignored for single-pixel width pen
Problem
When drawing a rectangle with a line width of 1px on a QPainter with antialiasing enabled results in slightly transparent corners regardless of what JoinStyle is set. The same can be observed ...
0
votes
2
answers
48
views
ui_mainwindow.h: No such file or directory: Compile Qt with MSYS2
I want to compile a Qt-Project without an IDE like QtCreator and I use MSYS2.
I installed Qt5 with
pacman -S mingw-w64-x86_64-qt5-base
I could then already create an application with
main.cpp
#...
1
vote
1
answer
145
views
Use OpenCV in qt qmake project: undefined reference
I want to use OpenCV in a QT qmake project. The vrsions are opencv 4.9.0 and QT 5.15.2(MSV 2019,64bit).
.pro file
INCLUDEPATH += C:/opencv/build/include
LIBS += -LC:/opencv/build/x64/vc16/lib \
...
0
votes
0
answers
43
views
MPR Viewer in Qt/VTK: Slices not displaying in Axial, Coronal, and Sagittal views
I'm a beginner in developing Qt/VTK applications and I'm working on creating a multiplanar reconstruction (MPR) viewer.
I successfully load the DICOM data path using appropriate methods. The volume ...
0
votes
0
answers
70
views
QSqlDatabase: QPSQL driver not loaded in Qt5 on Ubuntu 20.04 - Available drivers: ()
I'm developing an application using Qt5 on Ubuntu 20.04, and I need to connect to a PostgreSQL database. However, I'm encountering an issue where the QPSQL driver isn't loaded. Here's the error ...
0
votes
0
answers
42
views
Openssl library ARM execution TLS and Incompatible version of OpenSSL Failure
I am trying to run an Application to use http url images(for display) that uses the openssl 1.1.1d version for the Qt Framework on the ARM platoform. I was able to build the openssl 1.1.1d for ARM and ...
0
votes
1
answer
40
views
Change delegate if listelement is true
I am trying to use Pathview to show a carousel, when an element in my model has a certain field set as true, I would like to display an image next to the item in the carousel.
I have tried to mock up ...
0
votes
0
answers
32
views
How do I get started with using Qwt with a Yocto Image?
I want to know the steps involved to develop Qt application that utilize Qwt source, for a remote target, or which I'm building a distribution using Yocto. Here's the guide that I've been following: ...
0
votes
0
answers
78
views
CMake error when trying to install latte-dock from github repo
I am using Arch with Kde plasma.
I was trying to install latte-dock and in some videos it showed that you could do that by simply using pacman -S latte-dock, but now the package cant be found anymore, ...
1
vote
0
answers
44
views
DBus get stuck on compositor start
We use a Wayland compositor written in Qt5 to start and show some other applications written in Qt5 on an embedded Linux display computer.
All the applications and the compositor are using the DBus, ...
0
votes
1
answer
53
views
Can't open MS Word document (.docx) as a resource in QT
With the past method, I opened the document directly specifying the exact path
QAxObject *wApp = new QAxObject("Word.Application");
auto docs = wApp->querySubObject("Documents");...