Hello, I've encountered an error for when I want my application to do one of two things.
Normally when you create a QT application it starts the main window, well I've added the code
std::ifstream ifile("C:/Program Files/Skittles/Install.cab");
if (ifile.good() == true)
std::ifstream ifile("C:/Program Files/Skittles/Install.cab");
if (ifile.good() == true)
To copy to clipboard, switch view to plain text mode
Depending on the true or false status it runs a different UI.
However I right click on Project Name > Add New > QT - QT designer form class > Dialog with buttons bottom.
Now this code here
else if (ifile.good() == false)
{
install MyInstall;
MyInstall.setModal(true);
MyInstall.exec();
}
else if (ifile.good() == false)
{
install MyInstall;
MyInstall.setModal(true);
MyInstall.exec();
}
To copy to clipboard, switch view to plain text mode
Should open up the new UI since I named it install, I've included it's header file. But when I run it, a few things happen, 1: It will sucsessfully open 2: It will open for me but for a friend on Windows 8 it will not. 3: It gives a run time error http://gyazo.com/54b533dc8c40edbe837ad858eb6fdf3e 4: It says in the debug log "QWidget: Must construct a QApplication before a QPaintDevice"
To the extent I know this is all I have done to make this project and I am truly stuck on what to do or how to get it working. So any and all help would be greatly appreacted.
Bookmarks