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. [Solved] Is the order in which signals will be sent defined, or can they be sent in any order?
Forum Updated to NodeBB v4.3 + New Features

[Solved] Is the order in which signals will be sent defined, or can they be sent in any order?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 396 Views 1 Watching
  • 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.
  • T Offline
    T Offline
    technovelist
    wrote on last edited by technovelist
    #1

    Apparently I may have to write a "connect" statement for every control in my UI, to keep the UI data synchronized with my internal data. However, some of the controls also have other connections. Is the order these connections will fire in well-defined, or could it vary? That is, if I write this:

    connect(ui->CalculatePIA, SIGNAL(clicked()), this, SLOT(CalculatePIA()));
    connect(ui->CalculatePIA, SIGNAL(clicked()), this, SLOT(CalculateBenefit()));
    

    can I be sure that the first of these connections will fire before the other one when the user clicks the CalculatePIA button?

    Thanks.


    Note: never mind. http://stackoverflow.com/questions/1733022/qt-do-events-get-processed-in-order says that the order of connection will be respected, so long as the senders and recipients are in the same thread, which they will be in my case.

    1 Reply Last reply
    0

    • Login

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