[Qt-interest] QAccessible

Kanitz, Annett Annett.Kanitz at dzb.de
Wed Mar 31 09:20:03 CEST 2010


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.
>-----Ursprüngliche Nachricht-----
>Von: qt-interest-bounces at trolltech.com 
>[mailto:qt-interest-bounces at trolltech.com] Im Auftrag von David Ching
>Gesendet: Dienstag, 30. März 2010 17:08
>An: qt-interest at trolltech.com
>Betreff: Re: [Qt-interest] QAccessible
>
>"Kanitz, Annett" <Annett.Kanitz at dzb.de> wrote in message 
>news:59182F4ACF126B4795BDFE539DA00F8FB401F6 at DZBXC02.dzb.de...
>>
>> Thank you for helping me.
>> The dll was loaded, but when I used WinCheat 1.6 (cause I don't use 
>> Visual
>> Studio) the border was around the whole application and not 
>around the 
>> QPlainTextEdit. I used the CodeEditor example on 
>> http://doc.qt.nokia.com/4.6/widgets-codeeditor.html for 
>testing purposes.
>> What can I do make Qt not to handle it as an alien widget?
>>
>
>This is from Qt Assistant 4.5.3:
>
>Use the QT_USE_NATIVE_WINDOWS=1 in your environment.
>Set the Qt::AA_NativeWindows attribute on your application. 
>All widgets will be native widgets.
>Set the Qt::WA_NativeWindow attribute on widgets: The widget 
>itself and all of its ancestors will become native (unless 
>Qt::WA_DontCreateNativeAncestors is set).
>Call QWidget::winId to enforce a native window (this implies 3).
>Set the Qt::WA_PaintOnScreen attribute to enforce a native 
>window (this implies 3).
>
>Good luck,
>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