Fixed it. Some small mistake while declaring the class
Now
: QDialog(parent
) ,ui
(new Ui
::DialogClass)
desktop::desktop(QWidget *parent)
: QDialog(parent) ,ui(new Ui::DialogClass)
To copy to clipboard, switch view to plain text mode
this is my base class. it has form 2 associated with it.
this is the code where i want form 1 to run
int desktop::serialnumberacceptance()
{
newui->setupUi(dlg);
dlg->exec();
dlg->deleteLater();
}
int desktop::serialnumberacceptance()
{
QDialog *dlg = new QDialog( this );
newui->setupUi(dlg);
dlg->exec();
dlg->deleteLater();
}
To copy to clipboard, switch view to plain text mode
I am getting weird error now.
A message box pops up saysing
Runtime Error!
Program: ..... /../../.. app.exe
This application has requested the runtime to terminate it in a unusual way. Please contact the application support team for more information.
It also says QList: Out of memory in the application output screen.
How can i solve this?
Bookmarks