How set widget as current
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)
Code:
connect(mailbox, SIGNAL(tokenRequired(MailSystem*)), Token::getInstance(), SLOT(onTokenRequired(MailSystem*)));
End Token.h constructor
Code:
namespace Ui {
class Token;
}
{
Q_OBJECT
public:
explicit Token
(QWidget *parent
= 0);
static Token *getInstance()
{
static Token *instance = new Token;
return instance;
}
...
}
Regards
Re: How set widget as current
If first widget is modal this is normal behavior - it must be closed to activate another window.
If first widget is not modal then try this (line 14) :
Code:
namespace Ui {
class Token;
}
{
Q_OBJECT
public:
explicit Token
(QWidget *parent
= 0);
static Token *getInstance()
{
static Token *instance = new Token;
return instance;
}
...
}
Re: How set widget as current
Thank You for Your reply.
I found the solution :)
Set window modality in Token