You are not logged in.

#1 2013-03-03 15:34:49

zoorg
Member
From: Vladivostok
Registered: 2013-03-03
Posts: 4

[solved] qtconfig doesn't affect QtCreator, after switching to qt5

After recent update, when qt4 switched to qt5, my QtCreator dropped qtconfig theme.
Switching theme under root, in qtconfig-qt4 and wiping QtCreator configs did nothing.
Every other qt apps works fine.

Does anybody have any ideas, how it could be fixed?

Screenshots:
how QtCreator looks now:
9548167a1e5a806135d79b3891c8300d.png

how it must look:
30904ab986594aab1d95fd978d8b868d.png

theme switching do nothing:
ecf507f41a14be4c88629ce98d849233.png

upd: problem gone with latest update

Last edited by zoorg (2013-03-03 20:22:43)

Offline

#2 2013-03-03 18:38:36

ilpianista
Fellow developer
Registered: 2007-10-06
Posts: 568
Website

Re: [solved] qtconfig doesn't affect QtCreator, after switching to qt5

Unfortunately there's no fontconfig and gtk2 support in the current qt5 package. I'll push a new one soon.

Offline

#3 2013-03-03 20:21:23

zoorg
Member
From: Vladivostok
Registered: 2013-03-03
Posts: 4

Re: [solved] qtconfig doesn't affect QtCreator, after switching to qt5

ascarpino wrote:

Unfortunately there's no fontconfig and gtk2 support in the current qt5 package. I'll push a new one soon.

Yay, you realy did it! Thank you. :3

Offline

#4 2013-03-11 23:54:01

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 1,001
Website

Re: [solved] qtconfig doesn't affect QtCreator, after switching to qt5

I'm having this same problem, and I don't know how to solve it.

qtconfig doesn't affect the look of qtcreator or any other QT5 apps. How do I set the QT5 theme to, say, Cleanlooks?

Offline

#5 2013-04-26 16:46:03

microcz
Member
Registered: 2008-11-08
Posts: 45

Re: [solved] qtconfig doesn't affect QtCreator, after switching to qt5

having exactly same problem as karabaja4, and as far as I know this wasn't solved yet

Offline

#6 2013-12-13 15:03:52

SuperV1234
Member
From: Italy
Registered: 2013-07-02
Posts: 14
Website

Re: [solved] qtconfig doesn't affect QtCreator, after switching to qt5

Same problem after updating to QT5.0.2 today. Any known fix?

Offline

#7 2013-12-13 15:28:59

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

Re: [solved] qtconfig doesn't affect QtCreator, after switching to qt5

I had an appearance problem with qpdfview which is an qt5 appli in AUR, and I solved it launching the appli like that :

qpdfview -style gtk

Then qt5 uses the actual gtk2 theme, which for me is qtcurve, declared in the $HOME/.gtkrc-2.0 .
I have also custom colors defined in a $HOME/.gtkrc.mine file included in .gtkrc-2.0 .

Offline

#8 2013-12-13 15:50:08

SuperV1234
Member
From: Italy
Registered: 2013-07-02
Posts: 14
Website

Re: [solved] qtconfig doesn't affect QtCreator, after switching to qt5

Using `-style gtk` fixes the issue, many many thanks!
Is there a way to make it the default option without defining an alias?

Offline

#9 2013-12-23 23:14:17

SneakySnake
Member
Registered: 2012-03-30
Posts: 21

Re: [solved] qtconfig doesn't affect QtCreator, after switching to qt5

SuperV1234 wrote:

Using `-style gtk` fixes the issue, many many thanks!
Is there a way to make it the default option without defining an alias?

Qt, starting with 5.2 falls back to a generic style instead of the gtk style when it detects an unkown desktop environment.
See this commit: https://github.com/qtproject/qtbase/com … d5ce1e0269

You can set the QT_STYLE_OVERRIDE environment variable to force a specific style. (e.g. QT_STYLE_OVERRIDE=gtk)
You can put 'export QT_STYLE_OVERRIDE=gtk' into your .bashrc or some other place to force the gtk style.

Offline

#10 2013-12-24 10:08:54

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

Re: [solved] qtconfig doesn't affect QtCreator, after switching to qt5

Thank you SneakySnake
I adopted your tip and it works.

Offline

Board footer

Powered by FluxBB