Qt World Summit: Submit your Presentation

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

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


    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.

Log in to reply