Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, January 2007
-qt-style windows vs. windowsxp


Message 1 in thread

Is there any reason why using the "configure" option -qt-style-windowsxp 
would not work on an XP system?

The configure app indicates that it has used the "windows" default instead.

Mark

-- 
 [ signature omitted ] 

Message 2 in thread

Mark Thompson schrieb:
> 
> Is there any reason why using the "configure" option -qt-style-windowsxp
> would not work on an XP system?

In order to compile Qt with "Windows XP" style support the necessary
Windows SDK headers have to be found.

Best is you call configure from within a "Visual Studio Command" (in
case you're using the commercial Qt together with Visual Studio) which
sets all the necessary INCLUDEs for you.

If you don't use Visual Studio, you might have to download the free
Windows SDK (from somewhere from www.microsoft.com) which provides the
necessary headers. Set the INLCUDEs in your environment and Qt configure
should find and use them.

Cheers, Oliver

--
 [ signature omitted ] 

Message 3 in thread

Mark Thompson schrieb:
> 
> Hi Till,

Please don't write me in private. Write to the qt-interest list instead.

> I am using Qt commercial 4.2.2 with VS 2005.  It seemed strange to me
> that the configure would not work for windowsxp.
> I built 4.2.2 from the command line and first ran vcvarsall.bat (which
> was required to get configure to work).  I'm surprised it did not locate
> the correct header files.

Hmm I'm not sure where these header files are supposed to be (I guess
they are shipped together with Visual Studio, since I don't remember
having installed anything extra on my current developer machine, such as
a "Microsoft SDK", which also exist (and which I once had to install on
my home computer where I still have a an old Visual Studio 6 installed,
as to get the Windows XP support, AFAIK).

Anyway, since I never actually have compiled Qt 4.2.2 on Windows (I use
the binary distribution) I can only talk about Qt 3.3.7.

So when I click on [Qt 3.3.7]\bin\install.exe from the Explorer (for
example, no special INCLUDE, LIBS environment set) I get about 3-4
dialogs, complaining "can't find nmake.exe", "can't find foo.dll",
"can't find INCLUDEs..." etc.

Now when I bravely ignore all those warnings and click away until I get
to the "Advanced" settings, then I can choose the "Windows XP" style
support, which at this point is not selected per default. Once I do this
I get the following helpful message, saying roughly that "uxtheme.h"
header could not be found (that's the one you're looking for!) and that
it is part of the Microsoft Platform SDK, usually available from

  http://www.microsoft.com/msdownload/platformsdk/sdkupdate/

and it would need to be installed in the PATH, LIBS and INCLUDE
environment as appropriate.

> 
> Do you have any idea of specific header file names?  I'll try to locate
> them and back track why they were not found.

Looks like you need uxtheme.h

> By "Visual Studio Command", I assume you mean the "Tools Menu / Visual
> Studio 2005 Command Prompt"  ?

Exactly. And when I use this prompt and run [Qt 3.3.7]\bin\install.exe
from within this console everything is fine.
> 
> I'll give that a try.

Hope that helps, Oliver

--
 [ signature omitted ]