Questions tagged [qeventloop]

The QEventLoop class, part of the Qt framework, provides a means of entering and leaving an event loop.

At any time, you can create a QEventLoop object and call exec() on it to start a local event loop. From within the event loop, calling exit() will force exec() to return.

The official Qt documentation can be found here for Qt 4.8 and here for Qt 5.

99 questions
0
votes
1 answer

Using QNetworkAccessManager::authenticationRequired with own input widget / asynchronously

I'm currently developing a browser with Qt which has a vim-like input bar: This is basically just a QHBoxLayout with a QLineEdit and some QLabels in it. Now I'd like to handle HTTP authentication. The usual thing I see in other projects is opening…
The Compiler
  • 11,126
  • 4
  • 40
  • 54
0
votes
1 answer

pyside - Is there a way of getting log information for every event in the event loop?

I'm developing an application with PySide, and I was wondering if there is a way of logging which events enter the main event loop and which ones leave. my application use no threads, it is complete asynchronous, but I wanted to have log registries…
shackra
  • 277
  • 3
  • 16
  • 56
0
votes
0 answers

QEventLoop usage(signals and slots)

I have an application which contains such lines. emit WindowAdded(settings->WindowType);//!!!!!!!!!!!!!! MyWindow *widget = new MyWindow(0,settings,currentWindowIndex); The signal changes value of currentWindowIndex, but it didn't work because of…
zuzman322
  • 124
  • 8
0
votes
1 answer

QEventLoop not running when calling from static function through this pointer?

I'm having a QCoreApplication that loads different QtPlugins during startup that are getting data from various sources. This data is pushed back to my QCoreApplication through a registered callback function (equal for each plugin). The callback is…
Robert
  • 767
  • 8
  • 17
0
votes
2 answers

QThread: Call child thread method from main thread

I have a thread created by inheriting QThread in which I called exec() to initiate the event loop. And this class that inherits QThread has a method in it. How can I call that method from the main thread for it to execute in the child thread? I…
Jacob Krieg
  • 2,834
  • 15
  • 68
  • 140
0
votes
1 answer

Qt: QNetworkAccessManager dont send request

I used QNetworkAccessManager to handle send a http request: void f() { QNetworkRequest request( QUrl( address ) ); QNetworkAccessManager mng; mng.get(request); //QEventLoop().exec(); } void main() { ... f(); …
aviit
  • 1,957
  • 1
  • 27
  • 50
-1
votes
2 answers

QEventLoop not waiting synchronously for QNetworkReply to finish

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) and I am using a QEventLoop to achieve this. Currently the server gets called but the loop does not…
snufkin_san
  • 81
  • 1
  • 1
  • 5
-1
votes
1 answer

Unable to click on QRadioButton after linking it with QtCore.QEventLoop()

Few days back i had situation where i had to check/uncheck QRadioButton in for loop. Here is the link Waiting in for loop until QRadioButton get checked everytime? After implementing QEventLoop on this, it worked fine until today. Now i have seen my…
Pawankumar Dubey
  • 387
  • 1
  • 6
  • 21
-2
votes
2 answers

How to get the value passed from an unrelated signal to a slot?

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 couple instances I have to wait for the reply to the request to be sure an action is complete before…
Jay M
  • 3,736
  • 1
  • 24
  • 33
1 2 3 4 5 6
7