Top "Qthread" questions

QThread is a threading class provided by the cross-platform Qt framework.

How to stop a qThread in QT

I would like to know how to properly stop a QThread. I havea infinite loop in a thread, and I …

c++ qt qthread
How to setup QSerialPort on a separate thread?

Following the official documentation I'm trying to do this: MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { QThread *thread = new QThread; Worker *…

c++ qt qthread qtcore qtserialport
How to use QTimer to print a message to a QTextBrowser every 10 seconds?

I have working at this for hours and cannot figure it out nor can I find any help online that …

multithreading qt qt4 timer qthread
QThread vs std::thread

I saw different topics on "pthread vs std::thread" and "QThread vs pthread" but none on "std::thread vs QThread". …

c++ multithreading qt std qthread
How to use a process (QProcess) in a new thread (QThread)?

I have the following code: void Processmethod() { QDialog *ProcessMessage = new QDialog; Ui::DialogProcessMessage Dialog; Dialog.setupUi(ProcessMessage); ProcessMessage->setModal(…

c++ qt qthread qprocess qdialog
Correct way of threading in Qt

I have time consuming image loading (image is big), also some operations on it are done when loading. I do …

c++ multithreading qt qthread
QThread and QTimer

I'm working on an application developed with Qt 4.6. I want to create a custom timer that counts in a separate …

c++ qt qthread qtimer
QThread finished() connected to deletelater of a QObject

I have thought a lot and read lot of articles before asking this question here. None of the articles gave …

signals qthread qobject quit
Qt: Correct way to post events to a QThread?

In my Qt application, I have a main thread and a worker thread. The worker thread subclasses QThread and processes …

c++ multithreading qt events qthread
Sending large amount of data between Qt threads

I have a QThread which generates a fairly large amount of data regularly (couple of megabytes per second), and it …

c++ multithreading qt qthread