connect() in Debug and Release build differs
Solved
General and Desktop
-
Hi,
i've got a problem with connect() and the connection type. I'm using the connection-type BlockingQueuedConnection. In debug it works, the app blocks until the user input was processed, in release-mode the user input appears and the next function is executed. What could cause the different behaviour?
Here's the code i'm using:
connect(interpreter, &NwExecutionInterpreter::sigPlaceholder, m_placeHolderController, &PlaceHolderController::slotGetReplacements, Qt::BlockingQueuedConnection);
Thank you very much!
-
Hi
It should work the same.Please show the code where you use the the signal.
BlockingQueuedConnection means is queued until the event loop is able to deliver it to the slot.
In release mode, it might be faster.