QT in a Non-KDE enviroment

What would I need to put in my etc/enviroment to make my KDE apps use the global themes from KDE in SwayWM

Currently it is this

# This file is parsed by pam_env module
# Syntax: simple "KEY=VAL" pairs on separate lines


I guessing I’d need to swap the “qt5ct” in
QT_QPA_PLATFORMTHEME=qt5ct but what with exactly?

KDE global themes are not qt themes.

One option would be to look at what qt theme your global theme is using and then set that in qt5ct.

Is it not possible to make my KDE applications use the theme set in kde

You can try setting QT_QPA_PLATFORMTHEME=kde but I am not sure what impact that will have on non-kde qt applications.

If all you are after is consistent theming I think just setting the same theme in both places is the better option.

I always have a hard times with this. But In qt5ct settings I set in to kvantum most of the time.
And in the kvantum-qt5 app I use the right theme to match my KDE theme.

That is what works for me.

if you use kde you dont need that line in /etc/environment

qt5ct is basicly a configurator so you can set kvantum in it as example but using kde itself you dont need that line…

there is also less theming that match gtk also but combination with kvatum you can find some stuf that can match offcourse.

but standard fusion and windows or clear something rest you need something matching kvantum is a good style to have more choices atleast :slight_smile: