PDA

View Full Version : qt3 themes example: missing header files?



nikita
8th August 2006, 20:55
hey,
i'm new to qt, i'm currently building on freebsd 6.0; i wanted to build the themes example for qt3, the one with wood and metal... http://doc.trolltech.com/3.0/themes-example.html however, a quick look at the source files made me aware of local header files which should reside in the build directory, rangecontrols.h, buttongroups.cpp, etc. i've search the web and can't find the files anywhere not even in the kde repository. if anyone knows where they are or have a copy i would greatly appreciate the help. if not is there any way to get the brushed metal look in qt 4.1.4? all i see in the docs is that QMacStyle <aqua> is only available on the mac because it uses their theme engine. again help or info would be much lauded. thanx


nikita

jacek
8th August 2006, 21:43
That example is for Qt 3.0 --- it won't work with Qt4. You can find Qt4 version in $QTDIR/examples/widgets/styles or here (http://doc.trolltech.com/4.1/widgets-styles.html).


all i see in the docs is that QMacStyle <aqua> is only available on the mac because it uses their theme engine.

As the docs say:
Warning: This style is only available on Mac OS X because it relies on the Apple Appearance Manager.

Maybe there is a style plugin that emulates it. You can try to look for it on kde-look.org.

Brandybuck
9th August 2006, 05:09
The headers are from other examples. If you look at the .pro file, you'll see that they're all listed. This means you can't move the themes directory out of the examples directory.

In 4.1.4 you can get the brushed metal look (Mac OSX only) by using the Qt::WA_MacMetalStyle flag.

nikita
9th August 2006, 13:12
thanks guys, i'll get right on it and will report my progress....