You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, October 15th 2010, 7:35pm

Some machines using native widgets, most not

Hello :)

I'm running into a bit of a frustrating problem with a Qt app I am writing. On some machines, Qt is creating all widgets as native by default. On most it creates them as alien. The native widgets are much slower and in some cases I am getting crashes on the machines which are using native widgets. I've scanned the source to try and see what is causing this override but can't quite figure it. I see no pattern between the machines which would indicate why one machine is using native widgets and not another. The QT_USE_NATIVE_WINDOWS environment variable is not set on any of them.

All machines are running either Windows Vista or Windows 7. Some 64-bit, others 32. Again, no pattern between the machines that use native by default or not.

I'm real stuck on this one.. any ideas? Has anyone else run into this?

2

Friday, October 15th 2010, 8:18pm

Some additional info..

AA_NativeWindows is false in my app at all points.
WA_NativeWindow is true for all widgets.
All Qt apps on the machine are being created with native widgets -- at least, they are creating a bunch of USER Objects in task manager (much more than on the machines which are not creating native widgets), which is indicative of native widgets.

This post has been edited 1 times, last edit by "Sandman" (Oct 15th 2010, 9:02pm)


3

Friday, October 7th 2011, 6:47pm

There's an environment variable to force one of the behaviors. It isn't set is it?