Hide Forgot
Description of problem: When run from the Xfce menu gives an error "The QT_QPA_PLATFORMTHEME environment variable is not set correctly" and doesn't run Version-Release number of selected component (if applicable): 0.25.1 How reproducible: Always Steps to Reproduce: 1.select Qt5 Settings from the Xfce menu 2. 3. Actual results: gives error and doesn't run Expected results: application will open Additional info: downgrading to version 0.23.1 solves the problem. alternatively entering the following in a terminal will allow the application to run from terminal export QT_QPA_PLATFORMTHEME=qt5ct export QT_PLATFORMTHEME=qt5ct export QT_PLATFORM_PLUGIN=qt5ct
The behavior is correct, that's the way how Qt5 platform support works. Qt reads there environment variables and uses the values shipped by the plugin. Technically qt5ct is such a plugin, so changes made in qt5ct only work if the environment variables are set. But I do not set these by default, as the user might also have other platform like LXQt. So variables would conflict. Have to check what the best solution is. Maybe some script in /etc/profile.d which sets these variables if not yet set. But I have to check possible conflicts.
(In reply to Christian Dersch from comment #1) > The behavior is correct, that's the way how Qt5 platform support works. Qt > reads there environment variables and uses the values shipped by the plugin. > Technically qt5ct is such a plugin, so changes made in qt5ct only work if > the environment variables are set. But I do not set these by default, as the > user might also have other platform like LXQt. So variables would conflict. > > Have to check what the best solution is. Maybe some script in /etc/profile.d > which sets these variables if not yet set. But I have to check possible > conflicts. Thanks for the explanation.