In this bit of code:
void myQtApp::Log_in_clicked()
{
Password * My_dialog = new Password;
My_dialog->setWindowFlags(Qt::FramelessWindowHint );
My_dialog->move(0,0);
My_dialog->exec();
}
void myQtApp::Log_in_clicked()
{
Password * My_dialog = new Password;
My_dialog->setWindowFlags(Qt::FramelessWindowHint );
My_dialog->move(0,0);
My_dialog->exec();
}
To copy to clipboard, switch view to plain text mode
You create the dialog object on the heap and then allow the local variable that you stored the pointer in to go out of scope. If you put that address into a member variable instead you could access that object from other places in the code (to call exec(), show() or delete the object).
Bookmarks