Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. connect() in Debug and Release build differs
Forum Update on Monday, May 27th 2025

connect() in Debug and Release build differs

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 628 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jensen82
    wrote on 27 Jun 2017, 08:39 last edited by
    #1

    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!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 27 Jun 2017, 17:08 last edited by mrjj
      #2

      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.

      J 1 Reply Last reply 4 Jul 2017, 13:56
      3
      • M mrjj
        27 Jun 2017, 17:08

        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.

        J Offline
        J Offline
        jensen82
        wrote on 4 Jul 2017, 13:56 last edited by
        #3

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

        1 Reply Last reply
        1

        1/3

        27 Jun 2017, 08:39

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved