Category "qt"

How to realize a prompt dialog box when load a large file or other things using Qt?

I need to load a large file to parse and draw with OpenGL. The whole process is very time-consuming. So I want to realize a prompt dialog box before parse. But

Login dialog PyQt

I nearly finished my application, when the customer asked if I could implement some kind of login form on application startup. So far I have designed the UI, a

How can I create a Qt project without a UI/Designer file?

I'd like my project to be written programmatically instead of using Qt Designer. EDIT: I'm just asking for a template :P

How to assign two or more values to a QMap Variable in Qt

I am getting confused of how to store the values assigned from 3 different functions and storing them in a single map variable QMap<QString,TrainInfo>*Tim

When to use qmake eval?

https://doc.qt.io/qt-5/qmake-test-function-reference.html eval(string) Evaluates the contents of the string using qmake syntax rules and returns true. Definiti

How fix "unresolved external symbol" during OpenCV building with "WITH_QT" flag on in Visual Studio 2019?

I want to build an OpenCV library with Qt support from the source with CMake and Visual Studio 2019. Here are steps I did: Downloaded both opencv-4.5.5 and open

QTableWidget with setItem cannot access the data in the tablewidget

void IdListForTrain::SetListIdInList(QStringList IdList) { QTableWidgetItem *item=nullptr; for(int index=0;index<IdList.count();index++) { ui->Id_tabl

Can I use Xcode font on QtCreator?

After using QtCreator for a long time on Windows I was comfortable with it. But now I'm using it on macOS too and it feels different. I noticed default font is

Best QWidget or item to use to display a variable in a box

I would like to ask which QWidget or which Qt GUI item would be best to use to display a variable that will change during the lifecycle of the program, in a box

How to disable vsync right way in QML

I've found only one way to disable vsync in QML that works, but animations were too fast QSurfaceFormat format; format.setSwapInterval(0); QSurfaceFormat::setDe

QtCreator Getting Undefined Reference to Qt's own "QNearFieldTarget" Class while using CMake Build System

I'm trying to build an Android App to Debug the NFC communication. However, CMake doesn't seem to neither find nor link the required headers for NFC. QObject et

QtCreator issues ld: warning: directory not found for vcpkg Qt

I installed Qt5 with vcpkg on macOS Catalina. And installed QtCreator using the online installer. Then on QtCreatpr, Preferences, Kits, Qt Versions I added qmak

ASSERT: "i >= 0 && i < size()" in file Qt/6.2.4/mingw_64/include/QtCore/qstring.h

i am a noob in Qt, when a push a particular push button, the project window closes and shows this error: ASSERT: "i >= 0 && i < size()" in file Q

SERVER/CLIENT cannot send and recieve data on the same socket, server close server after first attempt

Hi im trying to create a backup function for my program, the idea is to copy and send all the files from one especific folder from my client to the server, the

how to bind to `MouseArea`'s `onDragChanged`?

Qt Creator suggests that the onDragChanged slot exists in MouseArea. MouseArea { id: mouseArea ... onDragChanged: console.log('Drag

Qt creator tracepoint

In Qt creator there are breakpoint settings. So I can put condition like this *(quint16*)((void*)e+0x8)==2 and it works nicely. But I would like to also print a

Creating installer using cpack and windeployqt, To contain qt and VTK libraries

Trying to package an application with Microsoft Visual Studio 2022 and qt6 libraries I do not no were to start from. I've done a bit of research most people use

How to Show a Picture in Qt python

How Can I Show A Picture in PyQT6? My Code: from PyQt6 import QtCore, QtGui, QtWidgets class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.

Connect Qprocess signal to slot

In the function below, how do I connect the process signal errorOccured to a slot? My goal is to qDebug the errorOccurred property when process.startDetached()

QML Row "fill" / auto-spacing?

Instead of assigning a fixed spacing between items, it is possible to evenly spread the items along the (parent's) width, so as to maximize spacing? What I curr