Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946

How to detect KDE version?



  • 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



  • Yes but it return version of my Qt (I'm deploying all Qt libs with my application). I need to know what is a version of KDE. If my application build on Qt5 is running on old KDE then I need to set own stylesheet



  • I'm really sorry. You are right

    For KDE it's KDE::versionString() from kdeversion.h but I can't test it.
    Regards.


Log in to reply