Hi MrDeath
i tried using your code but problem was not solved because when check file exists output display second window but when check file does not exist mainwindow need tobe displayed but no window displayed (actually this->show() is not working). But when i used
this->setAttribute(Qt::WA_DontShowOnScreen);
this->setAttribute(Qt::WA_DontShowOnScreen);
To copy to clipboard, switch view to plain text mode
the problem is solved. though i think this is not a good solution. i need better solution.
Hi kosasker
i solved my problem using this:
QFile file("E:/workplace/info.txt");
QFile file1
("E:/workplace/account_info.txt");
if(file.exists() & file1.exists())
{
Form1 *frm1 = new Form1;
this->setAttribute(Qt::WA_DontShowOnScreen);
frm1->setVisible(true);
}
QFile file("E:/workplace/info.txt");
QFile file1("E:/workplace/account_info.txt");
if(file.exists() & file1.exists())
{
Form1 *frm1 = new Form1;
this->setAttribute(Qt::WA_DontShowOnScreen);
frm1->setVisible(true);
}
To copy to clipboard, switch view to plain text mode
but i need further better solution
Bookmarks