Hi, when I trying to open QDialog or QWidget from other QWidget, opened widget is 'frozen' - not current, but when I close first widget, second widget is active.
How set new widget as current when is open from first widget ?

My code (first QWidget)
Qt Code:
  1. connect(mailbox, SIGNAL(tokenRequired(MailSystem*)), Token::getInstance(), SLOT(onTokenRequired(MailSystem*)));
To copy to clipboard, switch view to plain text mode 

End Token.h constructor

Qt Code:
  1. namespace Ui {
  2. class Token;
  3. }
  4.  
  5. class Token : public QWidget
  6. {
  7. Q_OBJECT
  8.  
  9. public:
  10. explicit Token(QWidget *parent = 0);
  11. static Token *getInstance()
  12. {
  13. static Token *instance = new Token;
  14. return instance;
  15. }
  16. ...
  17. }
To copy to clipboard, switch view to plain text mode 

Regards