Hello.

This is the code:
Qt Code:
  1. QMessageBox msgBox;
  2. msgBox.setText("Please wait to connect to the server.");
  3. msgBox.setWindowTitle("Checking for update.");
  4. msgBox.exec();
To copy to clipboard, switch view to plain text mode 
This executes the msgBox and waits for the user to click OK or [X] to the messagebox dialog. What I need is, after the .exec the program to continue with the following code (for instance to start checking for the update) and perform the check:
Qt Code:
  1. if(msgBox.isVisible())
  2. msgBox.close();
To copy to clipboard, switch view to plain text mode 
before displaying another message letting the user know if there is or not update.

How can you just launch a MessageBox?
(for anybody familiar to bash scripting it is similar to the symbol '&' after calling an application)