[Qt-interest] QAccessible

David Ching dc at remove-this.dcsoft.com
Wed Mar 31 20:24:28 CEST 2010


"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
 




More information about the Qt-interest-old mailing list