Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, December 2007
QPaintDevice, strange error


Message 1 in thread

> 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.
>
>

--
 [ signature omitted ] 

Message 2 in thread

Hi,

>> this is the message im getting:
>> "QPaintDevice: Must construct a QApplication before a QPaintDevice"

There is a QApplication in you program, isn't there?

--
 [ signature omitted ] 

Message 3 in thread

Dimitri wrote:
> Hi,
>
>>> this is the message im getting:
>>> "QPaintDevice: Must construct a QApplication before a QPaintDevice"
>
> There is a QApplication in you program, isn't there?
>
> -- 
> Dimitri
>
> -- 
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
>
well.. i suppose :P, please help me a bit, i dont know how to 
"construct" a qapplication, i've include the header btw :P :P
im new to all of these staff...

thank you

--
 [ signature omitted ] 

Message 4 in thread

Mystical Groovy wrote:
> Dimitri wrote:
>> Hi,
>>
>>>> this is the message im getting:
>>>> "QPaintDevice: Must construct a QApplication before a QPaintDevice"
>>
>> There is a QApplication in you program, isn't there?
>>
>> -- 
>> Dimitri
>>
>> -- 
>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
>> "unsubscribe" in the subject or the body.
>> List archive and information: http://lists.trolltech.com/qt-interest/
>>
>>
>>
> well.. i suppose :P, please help me a bit, i dont know how to 
> "construct" a qapplication, i've include the header btw :P :P
> im new to all of these staff...
> 
> thank you
>

This sounds like your first QT program. If you are going to use QT you 
really should invest the time go through the tutorials and examples. 
They will teach you about the role of QApplication

--
 [ signature omitted ]