LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-21-2022, 08:10 AM   #1
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,189

Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Post qt5ct setup


So how do you get the qt5ct utility to work? I issued the command:
Code:
set QT_QPA_PLATFORMTHEME=qt5ct
However in the qt5config window I just get "this application is not setup configured correctly." Did I have to set that command as root, or is it something completely different?
 
Old 03-21-2022, 08:24 AM   #2
shelldweller
Member
 
Registered: Mar 2019
Distribution: Slackware
Posts: 300

Rep: Reputation: Disabled
Quote:
Originally Posted by Jeebizz View Post
So how do you get the qt5ct utility to work? I issued the command:
Code:
set QT_QPA_PLATFORMTHEME=qt5ct
However in the qt5config window I just get "this application is not setup configured correctly." Did I have to set that command as root, or is it something completely different?
I add that line to /etc/environment, like this:

Code:
bash-5.1$ cat /etc/environment
# /etc/environment
# This file is parsed by pam_env module.
# This file may contain environment variable settings that should be used
# system-wide. Please note that it is not a script file and should only
# contain assignment expressions, one per line.
# The environment variables in this file will be loaded before those in other
# files such as: /etc/profile, /etc/profile.d/*, ~/.profile, etc.
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
QT_QPA_PLATFORMTHEME=qt5ct
That does the trick for me.
 
Old 03-21-2022, 08:29 AM   #3
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,699

Rep: Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381
I put it in my .xinitrc file.

Code:
export  QT_QPA_PLATFORMTHEME=qt5ct
 
Old 03-21-2022, 08:32 AM   #4
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,344

Rep: Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
Me use

/etc/profile.d

qt5ct.sh

Quote:
export QT_QPA_PLATFORMTHEME=qt5ct
 
Old 03-21-2022, 08:34 AM   #5
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,189

Original Poster
Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
I put it in my environment like so:
Code:
# /etc/environment
# This file is parsed by pam_env module.
# This file may contain environment variable settings that should be used
# system-wide. Please note that it is not a script file and should only
# contain assignment expressions, one per line.
# The environment variables in this file will be loaded before those in other
# files such as: /etc/profile, /etc/profile.d/*, ~/.profile, etc.
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
QT_QPA_PLATFORMTHEME=qt5ct
I even restarted my KDE session, and qt5settings still says it is not configured properly.
 
Old 03-21-2022, 09:35 AM   #6
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,189

Original Poster
Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
I now went in and added that line to /etc/profile.d/qt5.sh , and it still complains:
Click image for larger version

Name:	Screenshot_2022-03-21_09-30-19.png
Views:	36
Size:	31.7 KB
ID:	38644
 
Old 03-21-2022, 10:05 AM   #7
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,699

Rep: Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381
One thing that is probably not related, but qt5ct-1.1 is a bit dated. The newest version is 1.5. Just grab the source and change the version line in the slackbuild. No other changes are needed. And make sure you put export in front of the line.
Code:
export QT_QPA_PLATFORMTHEME=qt5ct
 
Old 03-21-2022, 10:32 AM   #8
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,189

Original Poster
Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Quote:
Originally Posted by Daedra View Post
One thing that is probably not related, but qt5ct-1.1 is a bit dated. The newest version is 1.5. Just grab the source and change the version line in the slackbuild. No other changes are needed. And make sure you put export in front of the line.
Code:
export QT_QPA_PLATFORMTHEME=qt5ct
Ok I forgot export, but I grabbed 1.1 , compiled it , installed (upgraded), verified my /etc/environment
Code:
                                                        
# /etc/environment
# This file is parsed by pam_env module.
# This file may contain environment variable settings that should be used
# system-wide. Please note that it is not a script file and should only
# contain assignment expressions, one per line.
# The environment variables in this file will be loaded before those in other
# files such as: /etc/profile, /etc/profile.d/*, ~/.profile, etc.
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
export QT_QPA_PLATFORMTHEME=qt5ct
And I even have the same in /etc/profile.d/qt5.sh
Code:
#!/bin/sh
# Environment variables for the Qt package.
#
# It's best to use the generic directory to avoid
# compiling in a version-containing path:
if [ -d /usr/lib64/qt5 ]; then
  QT5DIR=/usr/lib64/qt5
else
  # Find the newest Qt directory and set $QT5DIR to that:
  for qtd in /usr/lib64/qt5-* ; do
    if [ -d $qtd ]; then
      QT5DIR=$qtd
    fi
  done
fi
PATH="$PATH:$QT5DIR/bin"
export QT5DIR
export QT_QPA_PLATFORMTHEME=qt5ct
# Unfortunately Chromium and derived projects (including QtWebEngine) seem
# to be suffering some bitrot when it comes to 32-bit support, so we are
# forced to disable the seccomp filter sandbox on 32-bit or else all of these
# applications crash. If anyone has a patch that gets these things running on
# 32-bit without this workaround, please let volkerdi or alienBOB know, or
# post your solution on LQ. Thanks. :-)
if file /bin/cat | grep -wq 32-bit ; then
  export QTWEBENGINE_CHROMIUM_FLAGS="--disable-seccomp-filter-sandbox"
fi
Still not working after restarting KDE again.
 
Old 03-22-2022, 01:45 AM   #9
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
I've got the same thing as Daedra in my ~/.xsession which is used by XDM/xinit to start X.
Works fine, qt5-5.15.3_20220312_33a3f16f-x86_64 & qt5ct-1.5-x86_64

Note you must recompile qt5ct every time when qt is upgraded.
Also note, some programs like virtualbox ship static qt which you cannot theme with qt5ct.

Make sure there isn't something else that sets QT_QPA_PLATFORMTHEME on your system.
Maybe there's some export like that in 'startkde' now, but I don't use kde so..
Does it work in xfce, or with a simple wm? Without starting a plasma session I mean.
 
1 members found this post helpful.
Old 03-22-2022, 07:19 AM   #10
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,189

Original Poster
Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Quote:
Originally Posted by elcore View Post
I've got the same thing as Daedra in my ~/.xsession which is used by XDM/xinit to start X.
Works fine, qt5-5.15.3_20220312_33a3f16f-x86_64 & qt5ct-1.5-x86_64

Note you must recompile qt5ct every time when qt is upgraded.
Also note, some programs like virtualbox ship static qt which you cannot theme with qt5ct.

Make sure there isn't something else that sets QT_QPA_PLATFORMTHEME on your system.
Maybe there's some export like that in 'startkde' now, but I don't use kde so..
Does it work in xfce, or with a simple wm? Without starting a plasma session I mean.
I haven't tried it in xfce, but so now from what I am understanding I need to go and remove the export command in /etc/environment and /etc/profile.d/qt5.sh ...and just put it in my .xsession... Ok I will try that. I also never upgraded qt5 so recompiling anything is moot.

Last edited by Jeebizz; 03-22-2022 at 07:20 AM.
 
Old 03-22-2022, 07:23 AM   #11
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,189

Original Poster
Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
So I removed the export and only placed it in my .xsession .....still nothing, the QT5 config utility still complains....
 
Old 03-22-2022, 07:29 AM   #12
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,189

Original Poster
Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Quote:
Originally Posted by elcore View Post
Does it work in xfce, or with a simple wm? Without starting a plasma session I mean.
Nope, under xfce4 it still complains it is not properly configured.
Click image for larger version

Name:	Screenshot_2022-03-22_07-27-42.png
Views:	20
Size:	35.7 KB
ID:	38645
 
Old 03-22-2022, 10:37 AM   #13
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Mine (v1.5) just works, style:fusion dialogs:default palette:custom font:roboto
If compiled against the specific qt5 version you have installed then it should just work. Note that v1.1 may be older than qt5 in slackware 15.
And BTW .xsession is only executed in some setups not all, almost certain here that kde disregards that.
Anyway, easy enough to check with "env" where it lists all variables, if QT_QPA_PLATFORMTHEME is listed.
What does it say if you run "qt5ct" from the terminal?
 
Old 03-22-2022, 10:44 AM   #14
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,189

Original Poster
Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Quote:
Originally Posted by elcore View Post
Mine (v1.5) just works, style:fusion dialogs:default palette:custom font:roboto
If compiled against the specific qt5 version you have installed then it should just work. Note that v1.1 may be older than qt5 in slackware 15.
And BTW .xsession is only executed in some setups not all, almost certain here that kde disregards that.
Anyway, easy enough to check with "env" where it lists all variables, if QT_QPA_PLATFORMTHEME is listed.
What does it say if you run "qt5ct" from the terminal?
I am just running the stock qt5 included in Slackware 15. I honestly do not know, since clearly it isn't 'just working' for me and I am at the verge of saying fsck this and giving up but here is the terminal output anyhow:
Code:
slackuser@slackmachine:~$ qt5ct
Configuration path: "/home/slackuser/.config/qt5ct"
Shared QSS paths: ("/home/slackuser/.local/share/qt5ct/qss", "/usr/local/share/qt5ct/qss", "/usr/share/qt5ct/qss")
Shared color scheme paths: ("/home/slackuser/.local/share/qt5ct/colors", "/usr/local/share/qt5ct/colors", "/usr/share/qt5ct/colors")
 
Old 03-22-2022, 10:58 AM   #15
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
If you want my advice, compile qt5ct-1.5 which Daedra already confirmed working,
Other than that, I don't know, only time I've had a problem with it was when virtualbox set QT_QPA_PLATFORMTHEME=xcb by force.
So yeah, if you run virtualbox it's not going to work, you'll have to logout and reset the variable.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
qt5ct segfault on xfce de - slackware-current-64 multilib UH10Y6 Slackware 3 10-15-2020 11:06 PM
[SOLVED] QT5 styleplugins and qt5ct are not working properly for me. UH10Y6 Slackware 2 10-10-2020 11:54 PM
lost single click after using qt5ct, though kdeglobal appears correct husten Linux - Desktop 1 06-02-2017 02:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration