Qt-interest Archive, December 2007
QPaintDevice: strange error.
Message 1 in thread
Good morning everyone.
Here's my error,
Im writing C++ using KDE 3.5.7 and KDevelop 3.4.1
my qt application is compiling ok, but when i try to run it
i get the strange message after i construct a qdialog for using with a
button
"QDialog *Dialog1 = new QDialog(0,"popup", FALSE);
void DialogWidget::button1_clicked()
{
Dialog1->show();
}
"
this is the message im getting:
"QPaintDevice: Must construct a QApplication before a QPaintDevice"
Thank you for your time.
--
[ signature omitted ]
Message 2 in thread
Mystical Groovy wrote:
> this is the message im getting:
> "QPaintDevice: Must construct a QApplication before a QPaintDevice"
Did you create a QApplication before your your Dialog?
Do you have a QApplication at all?
Usually, it's the first thing created in main()
Cheers,
Peter
--
[ signature omitted ]