[Qt-interest] QAccessible

Kanitz, Annett Annett.Kanitz at dzb.de
Thu Apr 1 08:40:07 CEST 2010


I've set the attribute like this:
	QApplication app(argv, args);
	app->setAttribute(Qt::AA_NativeWindows, true);
MinGW wont compile it. Here is the error message:
main.cpp:14: error: base operand of `->' has non-pointer type `QApplication'


>-----Ursprüngliche Nachricht-----
>Von: qt-interest-bounces at trolltech.com 
>[mailto:qt-interest-bounces at trolltech.com] Im Auftrag von David Ching
>Gesendet: Mittwoch, 31. März 2010 20:24
>An: qt-interest at trolltech.com
>Betreff: Re: [Qt-interest] QAccessible
>
>"Kanitz, Annett" <Annett.Kanitz at dzb.de> wrote in message 
>news:59182F4ACF126B4795BDFE539DA00F8FB401F7 at DZBXC02.dzb.de...
>> Thanks for your help!
>> It's still not working properly.
>> I'm new to Qt and I'm not sure if I have set the attributes right. 
>> Here is my main():
>> QApplication app(argv, args);
>> app.setAttribute(Qt::AA_NativeWindows, true);
>>
>> CodeEditor editor;
>> editor.setAttribute(Qt::WA_NativeWindow, true); editor.winId(); 
>> editor.setAttribute(Qt::WA_PaintOnScreen, true); 
>> editor.setWindowTitle(QObject::tr("Code Editor Example")); 
>> editor.show(); Im sure I didn't handle the winId right, cause the 
>> documentation about that is quite poor.
>> I hope you can help a newbie like me.
>
>Try qApp->setAttribute(Qt::AA_NativeWindows, true); which 
>operates on the QApplication singleton object.
>
>-- David
> 
>
>_______________________________________________
>Qt-interest mailing list
>Qt-interest at trolltech.com
>http://lists.trolltech.com/mailman/listinfo/qt-interest
>




More information about the Qt-interest-old mailing list