You say that I should consider this dialog as any other one, so I think I found out how to instantiate it as it compiles :
waitDialog_dlg = new WaitDialog::WaitDialog(200, this);
waitDialog_dlg = new WaitDialog::WaitDialog(200, this);
To copy to clipboard, switch view to plain text mode
The trouble now is to invoke the dialog :
if ( waitDialog_dlg.exec() )
{
}
if ( waitDialog_dlg.exec() )
{
}
To copy to clipboard, switch view to plain text mode
compile error :
445 C:\root\dev\Qt\sms data\sms\menu.cpp `exec' has not been declared
With :
if ( WaitDialog::waitDialog_dlg.exec() )
{
}
if ( WaitDialog::waitDialog_dlg.exec() )
{
}
To copy to clipboard, switch view to plain text mode
compile error :
445 C:\root\dev\Qt\sms data\sms\menu.cpp `waitDialog_dlg' is not a member of `WaitDialog'
waitDialog_dlg is a member of my ApplicationWindow class like my other dialogs.
{
Q_OBJECT
public:
ApplicationWindow();
~ApplicationWindow();
// dialog
Destinataires *Destinataires_dlg;
Archives *Archives_dlg;
sendMsg *sendMsg_dlg;
WaitDialog *waitDialog_dlg;
class ApplicationWindow: public QMainWindow
{
Q_OBJECT
public:
ApplicationWindow();
~ApplicationWindow();
// dialog
Destinataires *Destinataires_dlg;
Archives *Archives_dlg;
sendMsg *sendMsg_dlg;
WaitDialog *waitDialog_dlg;
To copy to clipboard, switch view to plain text mode
I tried to declare the dialog in the WaitDialog class but things get worse...
Bookmarks