Skip to main content

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].

0 votes
0 answers
17 views

Problem embedding qquickview into qlayout

I'm using multi-threaded opengl in my qml so qquickwidget is not an option, when I use qwidget::createwindowcontainer to manage qquickview and embed it into qlayout it works fine . but if I take it ...
黄滨滨's user avatar
0 votes
0 answers
38 views

TableViewColumn in Quick.Controls 2.15

I need to rewrite the view from QTableView to qml when using quick.controls 2.15 in qt 5.15 in quick 2.15. I have a c++ model, but I need to display them in a table, with the ability to display them ...
kira20's user avatar
  • 1
0 votes
0 answers
39 views

AIX: C++ application with shared Qt5Core lib dependency has thread-local-storage runtime issue

I am on IBM AIX-7.2 and have this sample C++ code: #include <QtCore/QCoreApplication> #include <QtCore/QDebug> #include <QtCore/QDateTime> #include <cstring> int main(int argc,...
cellist's user avatar
0 votes
0 answers
23 views

How to use pyqtSlot() without @

I need to create a method in a foreign PyQt5 window class at runtime (that will be called later from a different thread with QMetaObject.invokeMethod()). Therefore I cannot use the decorator style. Is ...
Andreas Koten's user avatar
0 votes
0 answers
29 views

"make: *** There is no rule to build target "sub-mysql". Stop." error when trying to create a MySQL driver with Qt

I'm trying to install the QMYSQL driver on Ubuntu 24.04 LTS with Qt version 5.15.3, but I'm running into some issues. Problem: The sqldrivers directory only contains the SQLite driver, and I'm missing ...
HeaVito's user avatar
-2 votes
0 answers
41 views

QSqlQuery is not meant to be copied

I have defined a QSqlDatabase as follows: QSqlDatabase m_db; And use it repeatedly for each new query as follows: QSqlQuery query(m_db); query.prepare(querystring); success = dbquery(query,...
TSG's user avatar
  • 4,506
0 votes
0 answers
51 views

Install Qt5 libraries on Debian 12

I would like to install the Qt5 libraries onto Debian 12, but I do NOT want Qt Creator. I just want to be able to compile a C++ app which uses Qt5. And I would like to use packages from default ...
TSG's user avatar
  • 4,506
0 votes
0 answers
17 views

(Qt version 5.15.3) This application failed to start because it could not find or load the Qt platform plugin "xcb"

when i run qtcreator like this ./qtcreator, the error come out enter image description here and the ubuntu version is 22.04 ,qmake version is 3.1 enter image description here i have tried many ...
xyh's user avatar
  • 1
-1 votes
0 answers
53 views

Data sent from CPP causes interface crash in QML

first of all, I have a problem like this. I want to transfer the data to the QML side with a signal from C ++, but after a while my interface crashes without giving any error. I can't find the reason ...
Ctnkaya's user avatar
  • 13
-1 votes
0 answers
45 views

Building Qt 5.15.1 from source code but facing issues with configure

I am trying to build Qt 5.15.1 by cloning the repo and following the README but I came across an issue an issue. Everything went seemingly well till the step where I needed to run the configure file ...
Fares Hesham Abdelmoneim's user avatar
1 vote
0 answers
63 views

Qt QModel view use QSortFilterProxyModel fucntion is so slow,something wrong? [closed]

I use Qt Model view with QSortFilterProxyModel QListView with checkbox and name ,only one column QStandardItemModel setData ,100w row use QSortFilterProxyModel function setFilterFixedString and add a ...
codeTestUser's user avatar
-1 votes
0 answers
51 views

How to create customized barcode in qt c++?

I'm using qt 5.15 i have to develop application for Code 128 barcode generator and now I want to reduce the barcode strips. How do I create customized barcode strips? My code is below, Code128.h #...
Mahadev's user avatar
2 votes
1 answer
47 views

Q_DECLARE_METATYPE results in assert failure after upgrading from Qt 4.8 > 5.15

I have a large file which uses these macros: Q_DECLARE_METATYPE(boost::function<void()>); Q_DECLARE_METATYPE(boost::function<void(const QPoint&)>); But sadly after upgrading from Qt 4....
user17242965's user avatar
0 votes
0 answers
30 views

Visual Studio Code doesn't display visualized Qt5 objects on Linux

Using VSCode 1.85.2. I have qt5.natvis on my Linux CentOS 7, and my launch.json file includes the following properties: { ... "visualizerFile": "/path/to/qt5.natvis", ...
gil_mo's user avatar
  • 605
0 votes
0 answers
32 views

In QT6.5, when using QGraphicsView to center an image, the white space outside the image cannot be displayed, resulting in a centering failure

As shown in Figure 1, I want to implement clicking on the green rectangle to jump the green rectangle to the center, and if the green rectangle is closer to the border, it should be centered and ...
Hasegaawa Haruka's user avatar
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 ...
Charles's user avatar
  • 1,163
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 ...
Charles's user avatar
  • 1,163
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> #...
Ueda Takeyuki's user avatar
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 ...
AMIR REZA SADEQI's user avatar
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 ...
J. Coenen's user avatar
  • 334
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 #...
user172501's user avatar
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 \ ...
mjyazdani's user avatar
  • 2,025
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 ...
Christeen's user avatar
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 ...
MesTor's user avatar
  • 15
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 ...
Sangram Jadhav's user avatar
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 ...
Caleamon's user avatar
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: ...
Vishesh Varma's user avatar
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, ...
Matteo Retico's user avatar
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, ...
Strambauergooglemailcom's user avatar
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");...
dwood's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
293