Hi,

I am trying to set my application to use the WindowsXP-Style, but it just won´t work. This is, what I tried:

#include <Qt/QApplication.h>
#include <QtGui/QWindowsXPStyle.h>
Qt Code:
  1. int main( int argc, char* argv[])
  2. {
  3. QApplication::setStyle(new QWindowsXPStyle);
  4. QApplication app( argc, argv);
To copy to clipboard, switch view to plain text mode 

But when I try to compile this, I only get

.\main.cpp(7) : error C2061: syntax error : identifier 'QWindowsXPStyle'

I turned the WindowsXPStyle during compilation of Qt 4.3 with qconfigure -qt-style-windowsxp and it didn´t produce any error.

Also, I would like to have the Qt Designer display the WindowsXP Style as well, but this doesn´t work either.

I am running Qt 4.3 OpenSource edition on WindowsXP.

Does anybody know what is wrong?