LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-22-2022, 11:05 AM   #16
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,190

Original Poster
Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382

Quote:
Originally Posted by elcore View Post
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.
I am not using virtualbox, this is on my actual system. So if I understand you correctly, I should just recompile the stock qt5 version? And then what , should I remove all the export values and see what happens or.. ?
 
Old 03-22-2022, 11:24 AM   #17
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Quote:
Originally Posted by Jeebizz View Post
I am not using virtualbox, this is on my actual system.
It does not matter, if you have something like virtualbox, which can set the variable to some value other than "qt5ct" it's not going to work.
So if kde or some other qt program sets this to "xcb" it's clearly visible with env, and the main reason why qt5ct does not work for you.

Quote:
Originally Posted by Jeebizz View Post
So if I understand you correctly, I should just recompile the stock qt5 version?
Which part of this suggestion below is confusing enough for you to conclude entire qt must be recompiled?
Quote:
If you want my advice, compile qt5ct-1.5 which Daedra already confirmed working,
 
Old 03-22-2022, 11:25 AM   #18
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by Jeebizz View Post
I am not using virtualbox, this is on my actual system. So if I understand you correctly, I should just recompile the stock qt5 version? And then what , should I remove all the export values and see what happens or.. ?
Nope. Compile qt5ct in its last version.
Remove all env.
Then test.
You'll have to choose where to add the env variable in function of the DE/WM you use.
I use .xinitrc with i3wm.
 
Old 03-22-2022, 11:34 AM   #19
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,190

Original Poster
Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Quote:
Originally Posted by Tonus View Post
Nope. Compile qt5ct in its last version.
Remove all env.
Then test.
You'll have to choose where to add the env variable in function of the DE/WM you use.
I use .xinitrc with i3wm.
I already compiled qt5ct1.5 , removed all the env , placed it only in my .xinitrc and it still doesn't work. So.... I honestly do not know.
 
Old 03-22-2022, 11:58 AM   #20
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Relevant parts of qtdiag output;
Code:
Environment:
  QT5DIR="/usr/lib64/qt5"
  QT_QPA_PLATFORMTHEME="qt5ct"
Code:
Platforms requested : unknown,generic
            available : gtk3,qt5ct,snap,flatpak,xdgdesktopportal
Styles requested    : qt5ct-style
         available    : qt5ct-style,Windows,Fusion
You have "Breeze" in your screenshot, and I have no such thing here.
Maybe try some other styles in case that one is the cause of your problem, just saying.
 
Old 03-22-2022, 12:26 PM   #21
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,190

Original Poster
Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Quote:
Originally Posted by elcore View Post
Relevant parts of qtdiag output;
Code:
Environment:
  QT5DIR="/usr/lib64/qt5"
  QT_QPA_PLATFORMTHEME="qt5ct"
Code:
Platforms requested : unknown,generic
            available : gtk3,qt5ct,snap,flatpak,xdgdesktopportal
Styles requested    : qt5ct-style
         available    : qt5ct-style,Windows,Fusion
You have "Breeze" in your screenshot, and I have no such thing here.
Maybe try some other styles in case that one is the cause of your problem, just saying.
Not sure why it would be an issue as I tried it under xfce4 and that wasn't loading breeze, but I'll bite again.... nope...changed the theme from breeze to oxygen, and restarted kde... still the same thing...
Click image for larger version

Name:	Screenshot_2022-03-22_12-25-56.png
Views:	12
Size:	77.7 KB
ID:	38647
 
Old 03-24-2022, 08:42 AM   #22
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Have you fixed it yet?

Pretty sure that KDE's forcing its own theme, and the only reason why it works fine here is that I did not even install KDE.
So I guess there must be some way to force KDE to use qt5ct theme somewhere in KDE settings, but I can't really help you with that.

If it were my problem, I'd find where exactly KDE does set QT_QPA_PLATFORMTHEME=kde and change that to qt5ct.
It's most likely in "startkde" script or whatever. Possibly also in sddm config somewhere, but I use XDM so I haven't checked..
 
Old 03-24-2022, 08:52 AM   #23
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,190

Original Poster
Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Quote:
Originally Posted by elcore View Post
Have you fixed it yet?

Pretty sure that KDE's forcing its own theme, and the only reason why it works fine here is that I did not even install KDE.
So I guess there must be some way to force KDE to use qt5ct theme somewhere in KDE settings, but I can't really help you with that.

If it were my problem, I'd find where exactly KDE does set QT_QPA_PLATFORMTHEME=kde and change that to qt5ct.
It's most likely in "startkde" script or whatever. Possibly also in sddm config somewhere, but I use XDM so I haven't checked..
I would like to agree with you on that, but I am not so sure it is KDE - otherwise why isn't the utility functioning in xfce? It was suggested in this thread that I should try out xfce4 which also makes use of QT apps, and well the config utility still states it is not configured properly - so unless somehow KDE is overriding xfce4 , I do not know - because it is a fresh session, and I did not launch any KDE based apps under xfce4.

I think I need to start over, but now I don't know what I should remove to have a fresh start (config wise).
 
Old 03-24-2022, 09:04 AM   #24
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Quote:
Originally Posted by Jeebizz View Post
I would like to agree with you on that, but I am not so sure it is KDE - otherwise why isn't the utility functioning in xfce?
Funny thing with xfce is that is runs "kde services" at startup by default.
Those "kde services" only run in xfce if you have kde installed, and they could quite easily apply a simple environment variable.

Since I just use .xsession and have none of those desktop things installed, I've had no need to look into it.
On my system qt5ct-1.5 works fine, no problem. Just recompiled most recent qt5 today, and tested in blackbox wm, xfwm4 and twm.
 
Old 03-24-2022, 09:16 AM   #25
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,190

Original Poster
Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Quote:
Originally Posted by elcore View Post
Funny thing with xfce is that is runs "kde services" at startup by default.
Those "kde services" only run in xfce if you have kde installed, and they could quite easily apply a simple environment variable.

Since I just use .xsession and have none of those desktop things installed, I've had no need to look into it.
On my system qt5ct-1.5 works fine, no problem. Just recompiled most recent qt5 today, and tested in blackbox wm, xfwm4 and twm.
It was stated that kde overrides .xsession, so I removed export QT_QPA_PLATFORMTHEME=qt5ct from there, it is now also removed from /etc/profile.d/qt5.sh , so essentially I am now at square one. So lets start under the premise that - well I am - under Plasma5, what would be the recommended places to put
export QT_QPA_PLATFORMTHEME=qt5ct in?
 
Old 03-24-2022, 09:31 AM   #26
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,190

Original Poster
Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Also for the record, I only have xfce4, KDE and MWM to work with as I chose not to have blackbox/fluxbox fvwm or windowmaker installed.

Last edited by Jeebizz; 03-24-2022 at 09:33 AM.
 
Old 03-24-2022, 09:32 AM   #27
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
Jeebizz,

why do you need qt5ct if you are running KDE? Or did I misunderstand something?
 
Old 03-24-2022, 09:33 AM   #28
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,190

Original Poster
Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Quote:
Originally Posted by solarfields View Post
Jeebizz,

why do you need qt5ct if you are running KDE? Or did I misunderstand something?
There are apps that utilize it though - clipgrab certainly does. Unless I am mistaken isn't KDE5 itself using QT5?
 
Old 03-24-2022, 09:38 AM   #29
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
it is, and it applies the qt5 theme by itself. Doesn't this make qt5ct redundant?
 
Old 03-24-2022, 09:40 AM   #30
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Quote:
Originally Posted by Jeebizz View Post
It was stated that kde overrides .xsession, so I removed export QT_QPA_PLATFORMTHEME=qt5ct from there, it is now also removed from /etc/profile.d/qt5.sh , so essentially I am now at square one.
KDE has a long history of re-inventing, so I'm certain there is a file which does the same as .xinitrc and/or .xsession, only it's named differently.

Quote:
Originally Posted by Jeebizz View Post
So lets start under the premise that - well I am - under Plasma5, what would be the recommended places to put
export QT_QPA_PLATFORMTHEME=qt5ct in?
Only KDE devs can recommend this to you. Slackware just ships what they shared on kde.org.
If it were up to me, which is not, I'd tell you it's best to rewrite a /usr/bin/startkde script from scratch.
But that's just my opinion because I'm not a kde user, if you want official recommendation it's probably best to look at kde.org.
 
  


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 03:59 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