In this code I can only see one window that has a chance of being visible - pMainWin. Which is the other one?
In this code I can only see one window that has a chance of being visible - pMainWin. Which is the other one?
the main window:
Qt Code:
{ Q_OBJECT ....To copy to clipboard, switch view to plain text mode
and in the main.cpp the login method of mainwinow is called which creates the
login dialog (QDialog) :
Qt Code:
bool { Flightbook::centerInDesktop(*this); if(m_pLoginDialog) { delete m_pLoginDialog; } m_pLoginDialog = new LoginDialog(DefaultPilot); .....To copy to clipboard, switch view to plain text mode
So the login dialog always appears. Only the MainWindow isn't shown on virgin machins (with no Qt installed).....
After login winow finishes first time the MainWindow comes up...
nando
Do you use exec() or show() to show the login dialog?
Hi,
i use exec
nando
In that case you are probably suffering from QApplicaton::quitOnLastWindowClosed. Set it to false and see if it makes a difference.
Bookmarks