[Qt-interest] Dialog always opens, why?
Knapp
magick.crow at gmail.com
Wed Feb 25 19:05:10 CET 2009
All I wanted was to test for error and if there was an error pop up a
message box. This pops up the box every time. The ! does not make any
difference.
QFile inputFile;
inputFile.setFileName("Thrust.txt");
if(!inputFile.open(QIODevice::ReadOnly));
{
QLabel *label = new QLabel("File Error");
label->show();
//delete label;
}
--
Douglas E Knapp
Why do we live?
More information about the Qt-interest-old
mailing list