Results 1 to 4 of 4

Thread: QT Runtime OS Version

  1. #1
    Join Date
    Nov 2008
    Posts
    5
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default QT Runtime OS Version

    I want to know an API using which I can know the QT Runtime OS Type.

    Using qVersion() in QtGlobal I can know the OS Version.

    Similary I want to know an API for OS Type like I am using Ubuntu Linux then it should return similar sort of string...

    Thanks in advance...

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT Runtime OS Version

    You want the distribution name? Qt won't help you with that, you have to read system configuration files or parse result of uname.

  3. #3
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    508
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QT Runtime OS Version

    Hi, you can also check for a file in /etc/. It is normaly called something like SuSE-release, fedora-release and so on. It contains the version of the distribution.

    Ginsengelf

  4. #4
    Join Date
    Jul 2012
    Posts
    1
    Platforms
    Unix/X11

    Default Re: QT Runtime OS Version

    If I'm not mistaken, qVersion() won't supply you with OS version information.
    For details: http://doc.qt.nokia.com/4.7-snapshot....html#qVersion

Similar Threads

  1. Designer doesn't load wwWidgets plugin
    By reimer in forum Installation and Deployment
    Replies: 21
    Last Post: 7th February 2009, 03:23
  2. Qt designer plugin errors on OSX Leopard
    By mpotocnik in forum Qt Tools
    Replies: 10
    Last Post: 21st January 2008, 09:45
  3. Replies: 2
    Last Post: 5th November 2007, 21:47
  4. Distributing QT application for Mac OS
    By mb0 in forum Qt Programming
    Replies: 1
    Last Post: 31st May 2007, 18:59
  5. Replies: 15
    Last Post: 21st April 2007, 17:46

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.