Hey this should be a pretty straightforward question. Simply put: Want to run a function in another thread. Need to wait for the function to fin ...
Hey this should be a pretty straightforward question. Simply put: Want to run a function in another thread. Need to wait for the function to fin ...
I have multiple QTimer in the same thread, in the slot connected to the QTimer, I use QEventLoop for synchronization, like http requests, but I found ...
When I try to start a QTimer in a class derived from QObject, I get the warning QObject::startTimer: Timers can only be used with threads started ...
I am building a library with Qt that calls a server and I need to build a synchronous function that waits for an HTTP response (QNetworkReply object) ...
In Qt, how does one avoid race conditions if signals can be emitted around the same time when I connect to them? Consider the following naïve example ...
I have a signal/slot arrangement for an asynchronous call to request data. Normally that's fine as received data just updates controls. But in a coupl ...
I don't seem to find the right solution to this error. The program keep giving "RuntimeError: no running event loop". Why is the event loop not runnin ...
I couldn't understand how qt handle events (e.g timer event, socket event etc.) and signals in same event loop.As I understand,timer and socket events ...
First off, I have read up on QThreads and using the QEventLoop but I am not entirely sure my implementation is correct. TL;DR see Problem Details be ...
Since there is only one QCoreApplication object, why does it matter from which thread QCoreApplication::processEvents() is called? After all, the thr ...
I have some code use qtcpsocket to write and read, write-->sleep-->read; and ui had 2 and more timer to use this function; by i want i run synch ...
I'm trying to execute a network request and wait for the response before moving on. Whereas using a QEventLoop works to wait for the request, the prob ...
I just implemented a QLineEdit that selects it's text right after getting focus. I created a derived class and added to the header. I first tried t ...
My question is general and related to the use of the class QEventLoop in QT. I have two main questions about it. question 1) how it works internally ...
While debugging, I came up with strange for me thing. In the main function, I commented out creation of window as follows: I thought I am just crea ...
I've a menu screen which must be updated before the login screen closed. The code is something similar to below one; The problem is 'how can I be s ...
I am looking for clarification to help me understand Qt multi threading and event loops with Qt 4.8. I would also add I am new to threading in general ...
I just wrote some QThread based code that executes a big calculation. To visualize the progress I need to open a QProgressDialog. The dialog is applic ...
I work with a state machine based on QScxmlStateMachine. Some transitions are automatically triggered by code in the onEntry handlers, some others are ...
I am trying to create a UI that will act as a hub to launch all the other tools that have been created. The problem is that if i try to launch the UI ...