Results 1 to 3 of 3

Thread: detect current system

  1. #1
    Join Date
    Aug 2009
    Posts
    122
    Thanks
    74
    Qt products
    Qt4
    Platforms
    Windows

    Default detect current system

    What is the best way to detect the operating system? My program needs to know it the computer is Windows, Mac, or Linux.

    Thanks.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: detect current system

    At compile time or run time?

    Macros in the Global Qt Declarations for use at compile time
    QSysInfo for runtime information.

  3. #3
    Join Date
    Aug 2009
    Posts
    122
    Thanks
    74
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: detect current system

    The program need to find out about the current system at run time.

Similar Threads

  1. detect system time change
    By ahmdsd_ostora in forum Qt Programming
    Replies: 5
    Last Post: 29th October 2019, 12:04
  2. Replies: 8
    Last Post: 21st March 2011, 12:40
  3. detect internet browser on system
    By Dilshad in forum Newbie
    Replies: 3
    Last Post: 27th July 2010, 14:09
  4. how to get the current system time ?
    By Petr_Kropotkin in forum General Programming
    Replies: 4
    Last Post: 10th February 2010, 18:21
  5. How to display My Current System IP Address...???
    By maveric in forum Qt Programming
    Replies: 8
    Last Post: 4th August 2008, 17:22

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.