...,m_controlExecDlg(this) what is this? You try init your dialog as app window
Try next code
{
....
protected:
CControlDlg *m_controlDlg; //inherit from QDialog,and I pass this to it as it's parent window in ApplicationWindow's Construct function
}
ApplicationWindow
::ApplicationWindow(): QMainWindow( 0,
"HMI", estructiveClose|Qt
::WStyle_Customize){
m_controlDlg = new CControlDlg(this);
}
class ApplicationWindow:: public QMainWindow
{
....
protected:
CControlDlg *m_controlDlg; //inherit from QDialog,and I pass this to it as it's parent window in ApplicationWindow's Construct function
}
ApplicationWindow::ApplicationWindow(): QMainWindow( 0, "HMI", estructiveClose|Qt::WStyle_Customize)
{
m_controlDlg = new CControlDlg(this);
}
To copy to clipboard, switch view to plain text mode
Bookmarks