Category "qt"

Method to stop QThread that calls OpenCV functions

I have a simple PyQT application which, on press of a "calculate" button calls a long-running function that performs some image processing using OpenCV. To allo

Is Q_INTERFACES macro needed for child classes?

If I have class A that implements an interface (and uses Q_INTERFACES macro), then does child class B : public A also need to use the Q_INTERFACES macro? For ex

How can I *directly* append to a QVariantList, stored in a QVariantMap?

I have a collection of QVariantMaps which contains QVariantLists in SOME of their entries. I need to append to the lists. These lists can grow rather large, an

Using QSGTexture/QSGMaterial and Qt's RHI to implement a custom texture format for shaders

With Qt 6.2 there is a whole system of "graphics API independent" infrastructure (both on tooling and on C++ side) that enables you to render things in e.g. QML

Zip directory recursion

I am working on creating zip archive using old Qt - ZipWriter class. The problem is when I want to add the directory. The default Qt code for addDirectory metho

Qt and Android 11: accessing file in download folder

I developed an app using QT 5.15 that need to read some kind of files in Android Download folder. All it's OK until Android 9. In Android 10 I added the manifes

Returning MIME data from a function in Qt

I am trying to create a class with drag and drop. I want it to be used as a base class for future derived classes. I want derived classes to specify MIME data f

pyqt is not showing my progress bar but it is taking the time to go through it [duplicate]

I have a set of functions that when they run can take a few minutes to finish. I want to display a progress bar while they are running. I have

Using Qt+ICC on Windows

I have a question about the use of the Intel C++ compiler on Windows for compiling Qt projects. I know that officially ICC is supported only by Qt on UNIX, but

How to capture admin permission in .qs

I ask the system to call the maintenancetool and it asks for admin permission, how to know if the user allowed it or not in a .qs?

Is there a quick keyboard shortcut in QT to highlight current word?

Currently using Qt. I notice many others have a lightning-quick ability to highlight a word, copy and paste it. Without using moving your hands from keyboard to

Auto-filling the HTML input field with a C++ QString value

I am finding the 'Sign in' text on the QWebEnginePage and then auto filling in the emailId in the input field if the correct page is displayed. The value of ema

Enablin vsync in qt

I'm making an application in c++ and Qt. I'd like to know if the settings below are enough to have vsync enabled automatically by Windows for qt application. ev

How to open Subdirectories in a directories by using recursive function?

My program is already works well but I want to add one more condition. The program opens a directory and display .h and .cpp files. But if there is a subdirecto

Qt missing OpenSSL 3.x support on Ubuntu 22.04

I tried to build my application which uses QNetworkManager to communicate to a server. I did not have any problems on older Linux versions but with the newest U

LNK1117: syntax error in option 'VERSION:.' with qmake

On Qt5 project using Microsoft compiler, the qmake .pro project file have DATE = $$system(wmic os get LocalDateTime > $$OUT_PWD/wmic.txt) DATE = $$cat($$OUT_

mingw32-make fails in cmd due to temporary errors of non-literal type and non-trivial destructor in open CV sources

I need to inject Open CV to Qt according to this tutorial, but at the stage mingw32-make on cmd I got en error. C:/opencv/sources/3rdparty/protobuf/src/goog

How to build QtPDF Build with bitbake (w/o qtwebengine-core)

I try to build QtPDF without building the full QtWebEngine. According to the wiki page (https://wiki.qt.io/QtPDF_Build_Instructions) a simple -no-build-qtwebeng

How to open a second QMainWindow from my first/original MainWindow?

I am creating a desktop app with Qt6 and C++ and I have my original MainWindow class. Using Qt Creator I generated ui,h,cpp for a new SummaryClass (QMainWindow)

The window i made with qt designer doesn't show up

I made this window using qt designer i did not add the code that downloads the songs yet but when I run it the window doest show up from PyQt5 import QtCore, Qt