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

Qt 5.X and KDE Oxygen theme

Tags: None
(comma "," separated)
Dibo
Registered Member
Posts
28
Karma
0

Qt 5.X and KDE Oxygen theme

Tue Jul 09, 2013 7:19 am
Hi,

When run application compiled on Qt 5.1 on my linux KDE, default theme is fusion, not Oxygen. On Qt 4.X it is fine. Don’t know if this is KDE or Qt fault but Google says that the reason is that Oxygen style on KDE was compiled using Qt 4.X. What does it mean? On all platforms (even windows xp) Qt application look and feel native, but on KDE which is based on Qt too, it has problems. This is sad and ironic. Can this be fixed somehow? Can I just compile Oxygen with my Qt 5.1 and deploy this style with other libs or something? Tried force to use oxygen-gtk but it looks bad.
I supose that problem disappear when KDE will move to Qt 5.X but this could take months or even years. We will probably have Qt 6.X then…

Regards
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS

Re: Qt 5.X and KDE Oxygen theme

Tue Jul 09, 2013 3:09 pm
Qt5 breaks binary compatibility with Qt4 (thus the new major version number). Since Oxygen is a plugin, it is required to be rebuilt (and eventually adjusted, since Qt5 breaks source compatibility with Qt4 in some places, too) if you want to use it with Qt5 apps. KDE SC has not yet completed the move to Qt5, although much work is being done on it.

In short this means there's no "supported" way to run Qt5 apps with Oxygen; you can try to compile it against Qt5 though. This will change as soon as KDE Frameworks 5 is released. I don't know about the current state of Oxygen for Qt5 though and how well it works.

Greetings,
Sven


I'm working on the KDevelop IDE.
Dibo
Registered Member
Posts
28
Karma
0

Re: Qt 5.X and KDE Oxygen theme

Tue Jul 09, 2013 4:12 pm
Thanks for explanation :)
Dibo
Registered Member
Posts
28
Karma
0

Re: Qt 5.X and KDE Oxygen theme

Thu Jul 11, 2013 6:41 am
Do you know how can I build oxygen theme plugin? I want give a try. Must I build whole KDE or can I extract oxygen part?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Qt 5.X and KDE Oxygen theme

Thu Jul 11, 2013 7:18 am
The Oxygen widget style itself appears to be located in kde-workspace, at libs/oxygen/.
You will need to adapt the build system though, and quite possibly some of the code, to enable it to build successfully against Qt 5 however.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
einar
Administrator
Posts
3402
Karma
7
OS

Re: Qt 5.X and KDE Oxygen theme

Fri Jul 12, 2013 10:15 am
A Qt5 port of the style is in the works. It will be likely ready when Plasma Workspaces 2 is released.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
Dibo
Registered Member
Posts
28
Karma
0

Re: Qt 5.X and KDE Oxygen theme

Fri Jul 12, 2013 10:28 am
Could you give me some link where I can follow progress? And how it will work when port will be ready? I just compile oxygen style plugin , deploy with rest of my Qt5 libs and oxygen will just magically start working on old KDE4 based on Qt4?
User avatar
einar
Administrator
Posts
3402
Karma
7
OS

Re: Qt 5.X and KDE Oxygen theme

Sun Jul 14, 2013 9:08 am
I'm not sure it will. Currently it's quite hard to follow progress because KDE Frameworks 5 is a moving target (lots of work that needs to be done). I would suggest you to check back in a few months when (hopefully) some dust will have settled.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
hermantowawan
Registered Member
Posts
70
Karma
0

Re: Qt 5.X and KDE Oxygen theme

Thu Nov 27, 2014 8:16 pm
Dibo wrote:Do you know how can I build oxygen theme plugin? I want give a try. Must I build whole KDE or can I extract oxygen part?

you can extract oxygen part only


I Am Still Learning About KDE
User avatar
hyorisakura
Registered Member
Posts
9
Karma
0

Re: Qt 5.X and KDE Oxygen theme

Mon Dec 29, 2014 4:00 pm
not compatible


Love Anime


Bookmarks



Who is online

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