Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to detect KDE version?

How to detect KDE version?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kobid
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SergioDanielG
      wrote on last edited by
      #2

      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

      www.ftatv.com.ar El foro argentino de la TV libre

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Kobid
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SergioDanielG
          wrote on last edited by
          #4

          I'm really sorry. You are right

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

          www.ftatv.com.ar El foro argentino de la TV libre

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved