How to detect KDE version?
General and Desktop
4
Posts
2
Posters
1.4k
Views
1
Watching
-
Hi,
Application compiled on Qt 5.1 can't use KDE Oxygen theme. In this case I want to check if application is running on KDE4 and if true then I want apply Fusion Style (which is default in this case) and own palette. But how to check this in runtime?
Regards
-
Hi kobid.
Did you try with QT_VERSION_STR?
I my case, this
@qDebug() << QT_VERSION_STR;@
return
@5.0.2@
Hope it util
Regards -
I'm really sorry. You are right
For KDE it's KDE::versionString() from kdeversion.h but I can't test it.
Regards.