You are not logged in.

#1 2016-10-07 10:28:23

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 276

[Solved] QT5CT doesn't work (set default Qt toolkit)

hi,
i want to set the default Qt toolkit on my system:
https://wiki.archlinux.org/index.php/qt … Qt_toolkit

but qtchooser is no longer available, why?

i tried qt5ct but it doesn't work, it says:
"THE QT_QPA_PLATFORMTHEME enviomnt avriable is not set correctly."

$ qt5ct 
Configuration path: /home/pippo/.config/qt5ct/
Shared QSS path: /usr/share/qt5ct/qss/

i use openbox

Last edited by quellen (2016-10-07 19:22:21)


sorry for my bad english

Offline

#2 2016-10-07 10:58:17

metak
Member
Registered: 2009-09-27
Posts: 198

Re: [Solved] QT5CT doesn't work (set default Qt toolkit)

I have this environment variable set and it works.

export QT_QPA_PLATFORMTHEME=qt5ct

Offline

#3 2016-10-07 14:20:39

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,098

Re: [Solved] QT5CT doesn't work (set default Qt toolkit)

You are mistaking Qt toolkit, Qt Platform Theme and Qt Theme. What you want to do is change the Qt Theme, I presume, no the Qt Toolkit (which is not supported anymore).

Offline

#4 2016-10-07 16:08:19

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Re: [Solved] QT5CT doesn't work (set default Qt toolkit)

metak wrote:

I have this environment variable set and it works.

export QT_QPA_PLATFORMTHEME=qt5ct

Yes, and after that re-login.

Offline

#5 2016-10-07 16:12:49

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 276

Re: [Solved] QT5CT doesn't work (set default Qt toolkit)

ok, i run it with:

QT_QPA_PLATFORMTHEME="qt5ct" qt5ct

i tried to change the colors but in qt applications there is still default color theme (gray), why?

Last edited by quellen (2016-10-07 16:20:26)


sorry for my bad english

Offline

#6 2016-10-07 16:39:05

metak
Member
Registered: 2009-09-27
Posts: 198

Re: [Solved] QT5CT doesn't work (set default Qt toolkit)

quellen wrote:

i tried to change the colors but in qt applications there is still default color theme (gray), why?

Pallete -> choose 'custom' -> click '...' -> +create -> click '...' -> Edit -> set the colors

That should do it, I think. ;-)

Offline

#7 2016-10-07 16:56:07

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [Solved] QT5CT doesn't work (set default Qt toolkit)

You need to set that environment variable for all Qt programs, not just qt5ct.

Offline

#8 2016-10-07 17:26:56

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 276

Re: [Solved] QT5CT doesn't work (set default Qt toolkit)

i do it. the icon theme and fonts works, but colors no:

$ QT_QPA_PLATFORMTHEME="qt5ct" sigil
Debug: using qt5ct plugin
Debug: D-Bus system tray: no
Debug: palette support is disabled

Last edited by quellen (2016-10-07 17:33:20)


sorry for my bad english

Offline

#9 2016-10-07 18:24:00

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Re: [Solved] QT5CT doesn't work (set default Qt toolkit)

What "Style" is selected, QtCurve, Fusion, Windows…?

Offline

#10 2016-10-07 18:42:23

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 276

Re: [Solved] QT5CT doesn't work (set default Qt toolkit)

Windows. i have tried to set FUSION but nothing changes. it doesn't take my colors.

Last edited by quellen (2016-10-07 18:46:18)


sorry for my bad english

Offline

#11 2016-10-07 18:47:43

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Re: [Solved] QT5CT doesn't work (set default Qt toolkit)

Instead of issuing QT_QPA_PLATFORMTHEME="qt5ct" sigil, have you tried to put

export QT_QPA_PLATFORMTHEME=qt5ct

in .bashrc or whatever and re-login and launch qt5 apps as usual?

Offline

#12 2016-10-07 18:56:17

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 276

Re: [Solved] QT5CT doesn't work (set default Qt toolkit)

i have tried now: nothing changes: sigil takes only icon theme and fonts, the colors are still gray.

$ sigil
Debug: using qt5ct plugin
Debug: D-Bus system tray: no
Debug: palette support is disabled
$ cat ~/.config/qt5ct/qt5ct.conf 
[Appearance]
color_scheme_path=/home/pippo/.config/qt5ct/colors/pippo.conf
custom_palette=true
icon_theme=gnome
style=Fusion

[Fonts]
fixed=@Variant(\0\0\0@\0\0\0\x16\0\x44\0\x65\0j\0\x61\0V\0u\0 \0S\0\x61\0n\0s@$\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
general=@Variant(\0\0\0@\0\0\0\x16\0\x44\0\x65\0j\0\x61\0V\0u\0 \0S\0\x61\0n\0s@$\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)

[Interface]
activate_item_on_single_click=1
buttonbox_layout=0
cursor_flash_time=1000
dialog_buttons_have_icons=1
double_click_interval=400
gui_effects=@Invalid()
menus_have_icons=true
stylesheets=@Invalid()

[PaletteEditor]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x2\0\0\0\0\0V\0\0\0~\0\0\x2\xd0\0\0\x2\xa5\0\0\0X\0\0\0\x93\0\0\x2\xce\0\0\x2\xa3\0\0\0\0\0\0\0\0\x4\0)

[SettingsWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x2\0\0\0\0\0\xec\0\0\0\x83\0\0\x2\xc4\0\0\x2\x80\0\0\0\xee\0\0\0\x98\0\0\x2\xc2\0\0\x2~\0\0\0\0\0\0\0\0\x4\0)
$ cat ~/.config/qt5ct/colors/pippo.conf
[ColorScheme]
active_colors=#ffffff, #1f1a1a, #ffffff, #cbc7c4, #9f9d9a, #b8b5b2, #ffffff, #ffffff, #ffffff, #1f1a1a, #1f1a1a, #767472, #c6780b, #ffffff, #0000ff, #ff00ff, #1f1a1a, #000000, #1f1a1a, #ffffff
disabled_colors=#bebebe, #efebe7, #ffffff, #cbc7c4, #beb6ae, #b8b5b2, #bebebe, #ffffff, #bebebe, #efebe7, #efebe7, #b1aeab, #918d7e, #ffffff, #0000ff, #ff00ff, #f7f5f3, #000000, #ffffdc, #000000
inactive_colors=#ffffff, #1f1a1a, #ffffff, #cbc7c4, #9f9d9a, #b8b5b2, #ffffff, #ffffff, #ffffff, #1f1a1a, #999794, #767472, #c6780b, #ffffff, #0000ff, #ff00ff, #1f1a1a, #000000, #1f1a1a, #ffffff

Schermata_del_2016_10_07_20_55_10.png

Last edited by quellen (2016-10-07 18:58:59)


sorry for my bad english

Offline

#13 2016-10-07 19:01:13

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Re: [Solved] QT5CT doesn't work (set default Qt toolkit)

What about other qt5 apps?

ED: Sorry, qt5ct itself seems to fail as well?

What qt5 packages have you got?

ED: Well, not sorry! qt5ct seems to work. So obviously sigil has hardcoded colours.

Last edited by fluxboxer (2016-10-07 19:10:38)

Offline

#14 2016-10-07 19:12:16

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 276

Re: [Solved] QT5CT doesn't work (set default Qt toolkit)

i have tried MINITUBE. it works, it takes my color theme!

$ minitube
qt5ct: using qt5ct plugin
qt5ct: custom style sheet is disabled

than it's a sigil problem?

$ pacman -Q|grep qt
phonon-qt5 4.9.0-1
phonon-qt5-gstreamer 4.9.0-1
qt4 4.8.7-10
qt5-base 5.7.0-3
qt5-declarative 5.7.0-3
qt5-location 5.7.0-1
qt5-script 5.7.0-1
qt5-sensors 5.7.0-1
qt5-svg 5.7.0-1
qt5-webchannel 5.7.0-1
qt5-webkit 5.7.0-1
qt5-x11extras 5.7.0-1
qt5-xmlpatterns 5.7.0-2
qt5ct 0.27-1
qtwebkit 2.3.4-4

sorry for my bad english

Offline

#15 2016-10-07 19:14:23

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Re: [Solved] QT5CT doesn't work (set default Qt toolkit)

Yes, some silly devs are like that unfortunately!

Offline

Board footer

Powered by FluxBB