connect() in Debug and Release build differs



  • 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!


  • Qt Champions 2016

    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.



  • @mrjj : Thank you! Problem solved...the build process was the problem. It did not rebuild because of date-issues :-)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.