QPaintDevice, strange error

Andreas Pakulat apaku at gmx.de
Tue Dec 4 23:10:24 GMT 2007


On 05.12.07 00:24:27, Mystical Groovy wrote:
> Good evening everyone.
> 
> Heres 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.

Thats not a KDevelop problem, its a coding error on your side. You
didn't create a QApplication object before creating the dialog.

If you're a beginner with programming with Qt it might make sense to
subscribe to the qt-interest list available at lists.trolltech.com

Andreas

-- 
You will obey or molten silver will be poured into your ears.




More information about the KDevelop mailing list