QT5CT (QT5 Settings) application unable to start in Leap 42.2 GnomeDE

The error message given when attempting to start QT5 Settings GUI app by
a user) is as follows: ‘The QT_QPA_PLATFORMTHEME environment variable is
not set correctly’

Running in terminal (as a user) a pop-up window gives same message as
GUI method above
:~> qt5ct
Configuration path: /home/xxxxxx/.config/qt5ct/
Shared QSS path: /usr/share/qt5ct/qss/

**Running in terminal as root works but starting via GUI QT5 Settings
app gives same error message as ordinary user above.

Apart from Yast2-qt, I also use Dolphin and K3b. These apps now look ok
under native gnome theme but I would like to use a native qt theme where
I choose by personal preference.

What needs to be done to correct this issue?

Any advice on getting this working (so far none forthcoming)?

This package does not do what it claims to be able to do (see below
quote) under leap 42.2 gnome 3 desktop environment but works fine under
mate (both on separate install partition or as an extra desktop
environment option in this problematic gnome 3 configuration.

“Qt5 Configuration Tool
This applications allows users to configure Qt5 settings (theme,
font, icons, etc.) under DE/WM without Qt integration.”
https://software.opensuse.org/package/qt5ct?search_term=qt5ct

The below method works but settings do not hold after end of session:
"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

https://bugzilla.redhat.com/show_bug.cgi?id=1371739 "

On 02/11/17 21:00, Peter_Abc wrote:
> The error message given when attempting to start QT5 Settings GUI app by
> a user) is as follows: ‘The QT_QPA_PLATFORMTHEME environment variable is
> not set correctly’
>
> Running in terminal (as a user) a pop-up window gives same message as
> GUI method above
> :~> qt5ct
> Configuration path: /home/xxxxxx/.config/qt5ct/
> Shared QSS path: /usr/share/qt5ct/qss/
>
> **Running in terminal as root works but starting via GUI QT5 Settings
> app gives same error message as ordinary user above.
>
> Apart from Yast2-qt, I also use Dolphin and K3b. These apps now look ok
> under native gnome theme but I would like to use a native qt theme where
> I choose by personal preference.
>
> What needs to be done to correct this issue?

Hi
Either script it so they are exported when you run an application needing them, or add to your ~/.profile but could cause conflicts.