That should be Ok, since that code is generated by UIC (unless you modified manually the ui_CLASS.h, you shouldn't do that)
One other problem that i see (might not be related to this, i don't know what could be the result of it, but it is a problem) is that you call show() then you call exec() (i'm pretty sure that is not recommended)
This happens in main.cpp:
// login_box.show(); //comment or delete this line, because exec() will also show your (modal) dialog... so you don't need this
if(login_box.
exec()==QDialog::Rejected)// {
// login_box.show(); //comment or delete this line, because exec() will also show your (modal) dialog... so you don't need this
if(login_box.exec()==QDialog::Rejected)//
{
To copy to clipboard, switch view to plain text mode
Bookmarks