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)
connect(mailbox, SIGNAL(tokenRequired(MailSystem*)), Token::getInstance(), SLOT(onTokenRequired(MailSystem*)));
connect(mailbox, SIGNAL(tokenRequired(MailSystem*)), Token::getInstance(), SLOT(onTokenRequired(MailSystem*)));
To copy to clipboard, switch view to plain text mode
End Token.h constructor
namespace Ui {
class Token;
}
{
Q_OBJECT
public:
explicit Token
(QWidget *parent
= 0);
static Token *getInstance()
{
static Token *instance = new Token;
return instance;
}
...
}
namespace Ui {
class Token;
}
class Token : public QWidget
{
Q_OBJECT
public:
explicit Token(QWidget *parent = 0);
static Token *getInstance()
{
static Token *instance = new Token;
return instance;
}
...
}
To copy to clipboard, switch view to plain text mode
Regards
Bookmarks