This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Oxygen theme won't load on windows

Tags: None
(comma "," separated)
jokerwww
Registered Member
Posts
12
Karma
0

Oxygen theme won't load on windows

Tue May 12, 2009 11:53 pm
I have developed a Qt application making extensive use of style sheets. Testing it on linux/kde4 it worked out fine, however when I tested it on Windows Vista/XP I discovered my customizations didn't work with the WindowsVista and WindowsXP styles.

Given that, I decided to use the oxygen style on windows as well, I downloaded KDE (4.2.3) for windows copied oxygen.dll and dependecies to the application directory and used QApplication::setStyle(QStyleFactory::create("Oxygen")). That didn't work, upon calling QStyleFactory::keys() it lists the windows styles but not oxygen, and I have no idea why.

DependencyWalker shows some warnings regarding IEFRAME.dll and SHLWAPI.dll, but since it shows those warning regarding other libs that are working fine I assume that's not the problem.

Has any one out there ever managed to use the Oxygen style on windows? Or have any idea what the problem might be?

I'm using KDE 4.2.3, Qt 4.5.1 on Windows Vista, with MinGW as the compiler. The linux system which is working great is a Gentoo box with KDE 4.2.3 and gcc 4.x.

Thanks in advance.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Did you copy the various KDE dependencies such as KDECore, KDEUi, KStyle, etc?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
jokerwww
Registered Member
Posts
12
Karma
0
Yes I did. I copied libkio.dll, libkdeui.dll, libkdewin32.dll, libkdecore.dll and kstyle_oxygen_config.dll, as well as the obvious oxygen.dll. As far as I can tell(using dependency walker) the issue is not dependencies.

Is there another way to check the oxygen.dll dependencies?

Thanks for the reply.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I have moved the thread to the Windows forum, to see if they have any insight into the problem.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Brandon
Moderator
Posts
72
Karma
0
OS
try to put it inside a plugins folder as suggested by the docs
http://doc.trolltech.com/4.5/deployment ... on-package


Brandon, proud to be a member of KDE forums since 2008-Oct.
jokerwww
Registered Member
Posts
12
Karma
0
Brandon,

Your sugestion partially worked. When I place oxygen.dll in the standard Qt plugins directory it is found normally, however putting it another folder and adding said location to the LibraryPath does not work, weirdly other themes placed in the same directory do work.
I still haven't had the opportunity to test this on a machine without Qt installed, I'll try that and share my results as soon as I can.

On another note, when I do place oxygen.dll(and all dependencies) in the standard Qt plugins folder it is found, however when I try to use the theme it gives me an assertion regarding DBus, since(afaik) DBus only exists in *nix, I'm wondering if it even is possible to use the oxygen theme without installing all of KDE. Has anyone ever done something like that?

Thanks for the replies.
User avatar
Brandon
Moderator
Posts
72
Karma
0
OS
well we use dbus on windows too for kde, the oxygen style is a kstyle and it uses kde libraries, so it may be a bit hard to use oxygen without kde
btw you can try some of the styles at kde-look some of them like qtcurve can be built with just qt4


Brandon, proud to be a member of KDE forums since 2008-Oct.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Sogou [Bot]