Dear visitor, welcome to KDE-Forum.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.
why never loading the KDE styles with selfbuild QT?
I often must build a new QT library on Linux for development reasons. I started KDevelop and set there a new QTDIR environment. My (only QT,not KDE) application compiled and linked fine, but when it starts it never has my KDE style.
The QT library was not loading the KDE-styles libs, although the BUILD_KEY was the same. Unfortunately there are no error or warning messages when I start my application at console. Has anyone build a QT library who was able to load the KDE styles?
harald
I think your version of Qt does not find the KDE-styles. You can set the directories in which Qt should search for plugins using the tool qtconfig. There you can also set the default style.
It's nice to be important but it's more important to be nice
excellent! that was the solution.
the name of the style plugin, is stored at ~/.qt/qtrc, which could be also manipulated with KDE Control Center or the programm "qtconfig".
but as you said, the entry "libraryPath" in the section [3.3] (my new QT lib), didn't include the path to the KDE plugins, which is "/opt/kde3/lib/kde3/plugins"
I'm having a similar problem albeit not on the programming side. I've compiled my own copy of qt-x11-free-3.3.1. When I boot up using that as my copy of Qt I only get a very very poor choice of styles ( 6 I think ), and when loading this page virtually all of the graphics are missing. Is this connected to the fact that I didn't enable the gif option when I configured it?
Cheers
Amos
May the wind at your back never be your own!
Well I've solved my own problems.
1. The lack of Icons/Images on the web page was due to lack of GIF support in Qt.
2. Recompiling kdelibs and installing it (I actually used checkinstall to make a Slackware package) solved the problem with the styles.
Cheers
Amos
May the wind at your back never be your own!
Woops, this was a double post. Sorry!
Cheers
Amos
May the wind at your back never be your own!
This post has been edited 1 times, last edit by "amos" (Apr 21st 2004, 11:03pm)