You are not logged in.

#1 2014-04-21 16:58:11

kachelaqa
Member
Registered: 2010-09-26
Posts: 216

Using qtcurve with qt5 applications

smplayer recently moved to qt5, and because I don't use a DE (just plain openbox instead), it doesn't pick up my qtcurve gui style.

I thought I'd be able to fix this pretty easily by using QT_STYLE_OVERRIDE - but disappointingly, it doesn't work (I just get the default Fusion style). I also tried using -style=qtcurve, but get the same results. However, when I try a different gui style, such as gtk, it does work as expected.

There is a workaround of setting KDE_FULL_SESSION=1 and KDE_SESSION_VERSION=4, and then setting the gui style in the kdeglobals config. But I'd much rather use QT_STYLE_OVERRIDE.

Has anyone managed to get this working properly - or should I just go ahead and report a bug upstream?

Last edited by kachelaqa (2014-04-21 16:58:48)

Offline

#2 2014-04-21 21:21:42

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: Using qtcurve with qt5 applications

Do you have the qtcurve-qt5 package installed.

kachelaqa wrote:

when I try a different gui style, such as gtk, it does work as expected

What do you mean? that the qtcurve-gtk2 theme is used?
Why don't you want to use the 'KDE_*' variables if that works?

I find the qt5 default Fusion theme not so bad with a customized stylesheet for the colors.

Offline

#3 2014-04-21 22:16:04

kachelaqa
Member
Registered: 2010-09-26
Posts: 216

Re: Using qtcurve with qt5 applications

berbae wrote:

Do you have the qtcurve-qt5 package installed.

Of course. I already know that it works using the KDE_* variables.

kachelaqa wrote:

when I try a different gui style, such as gtk, it does work as expected

What do you mean? that the qtcurve-gtk2 theme is used?

No, I get the default Fusion style, as I said.

Why don't you want to use the 'KDE_*' variables if that works?

Because those variables have other side-effects, so I'd rather not use them.

I find the qt5 default Fusion theme not so bad with a customized stylesheet for the colors.

Sure, but this is about trying to get the QtCurve style working with QT_STYLE_OVERRIDE. I was hoping that someone who uses qtcurve could confirm whether it is working as expected. If so, then there must be something wrong with my setup; if not, then it's probably an upstream bug.

Offline

#4 2014-04-22 07:46:28

rabid_works
Member
Registered: 2010-08-15
Posts: 45

Re: Using qtcurve with qt5 applications

I had to install qtcurve-qt5 from [community] to get smplayer and other qt5 applications to use the same qtcurve style as the rest of my set-up.

Offline

#5 2014-04-22 08:34:12

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: Using qtcurve with qt5 applications

@rabid_works : Yes but how do you select the qtcurve-qt5 theme? Do you use the QT_STYLE_OVERRIDE variable or the -style parameter?
I don't think that only installing the package will automatically make it used by qt5 applis. So can you explain please?

Offline

#6 2014-04-22 11:59:05

kachelaqa
Member
Registered: 2010-09-26
Posts: 216

Re: Using qtcurve with qt5 applications

berbae wrote:

@rabid_works : Yes but how do you select the qtcurve-qt5 theme? Do you use the QT_STYLE_OVERRIDE variable or the -style parameter?
I don't think that only installing the package will automatically make it used by qt5 applis. So can you explain please?

Yes, this is the issue. There are two methods for loading the style plugin. With the first one, Qt5 will detect the DE in use, and if it finds one it knows about, it will query the DE's own settings to find out which style plugin to use. The second method checks the -style option or the QT_STYLE_OVERRIDE variable and, if present, loads the plugin directly from that.

I guess that most people who use qtcurve are also using one of the supported DEs: KDE, Gnome, Unity, LXDE, Xfce and MATE. They will not normally see a problem, because the style plugin is loaded using the first method. I'm not using one of those DEs, but I can it fake it by setting something like KDE_FULL_SESSION/KDE_SESSION_VERSION. This is an ugly hack, though, because it can affect much more than just the gui style.

Qt5 introduced the QT_STYLE_OVERRIDE variable to help people who don't use one of the supported DEs. But for me at least, it's currently not working with the qtcurve plugin.

Offline

Board footer

Powered by FluxBB