[Qt-interest] Howto prevent usage of native winId

David Ching dc at remove-this.dcsoft.com
Sat Mar 6 15:41:48 CET 2010


"Frank Hemer" <frank at hemer.org> wrote in message 
news:201003061520.45766.frank at hemer.org...
>
> I'm developing for tabletPC using WinXP Microsoft TabletPC Edition.
>
> On the target platform, all created widgets have a native winId (not
> intentionaly forces by any QApplication attribute or such).
> That does not happen on a plain WinXP, Linux or others.
>
> This causes several problems - as f.e. it prevents QGraphicsEffect & 
> friends
> from working properly.
>
> What can be the cause of this, and how can I workaround/prevent it?
>

This happens to me when I am running a screen accessibility reader like 
JAWS.  I haven't traced the Qt Accessibility code yet, but I think on 
startup, Qt sees if a screen reader is running and if so it generates all 
widgets with a native HWND.  But not if no screen reader is running.

You may want to see if the Tablet PC's accessibility reader or other things 
are running, and trace into Qt Accessibility code.  Then let us know, it 
would be interesting!  If this is the root cause, you can not distribute the 
QtAccessible4.dll (I think it's name is that), or build Qt with the #define 
QT_NOACESSIBILITY (I think it's name is that) flag, and it should then work 
for you.

-- David 




More information about the Qt-interest-old mailing list