Results 1 to 9 of 9

Thread: Detect operating system, physical memory and other system information

  1. #1
    Join Date
    Jun 2010
    Posts
    90
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Detect operating system, physical memory and other system information

    I want to collect information that what is current OS, how physical memory (RAM) does the machine has, how much disk space etc. I tried to use QSysInfo but was not able to get what I am looking for.
    Also in some document it is written that QSysInfo::WindowsVersion() function is there but this is also missing in QSysInfo. QSysInfo has very few options.

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

    Default Re: Detect operating system, physical memory and other system information

    It's hard to gather such information from a single source and definitely not in a cross-platform way. On Unix you'd have to parse some files in /proc, for example.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jun 2010
    Posts
    90
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Detect operating system, physical memory and other system information

    Does is required to modify .pro file to get all options of QSysInfo::WindowsVersion()

  4. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Detect operating system, physical memory and other system information

    How are you trying to access them?

  5. #5
    Join Date
    Jun 2010
    Posts
    90
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Detect operating system, physical memory and other system information

    How can get available physical memory on windows platform?

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

    Default Re: Detect operating system, physical memory and other system information

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Jun 2010
    Posts
    90
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Detect operating system, physical memory and other system information

    it is leading to only google search page for this phrase. I want to calculate available physical memory on a machine using QT.

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

    Default Re: Detect operating system, physical memory and other system information

    Quote Originally Posted by mvbhavsar View Post
    it is leading to only google search page for this phrase.
    Congratulations, that was the idea. Now look at the results and follow the one that looks like it knows how to calculate available physical memory using C++.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Detect operating system, physical memory and other system information

    Qt is a framework, not a language. If you can't see the functionality in the Qt documentation, then look for a C++ solution. It's not difficult, Wysota even created the google query for you.

Similar Threads

  1. Getting System Information
    By Ankitha Varsha in forum Qt Programming
    Replies: 1
    Last Post: 3rd November 2008, 10:37
  2. Locating a driver on the operating system
    By schall_l in forum Qt Programming
    Replies: 2
    Last Post: 15th July 2008, 09:19
  3. QMainWindow in AIX operating system
    By Vani in forum Qt Programming
    Replies: 3
    Last Post: 14th June 2008, 19:50
  4. change operating system theme.
    By rajeshs in forum Qt Programming
    Replies: 2
    Last Post: 20th March 2008, 04:02
  5. How to know the operating system?
    By Dark_Tower in forum Newbie
    Replies: 4
    Last Post: 4th May 2006, 20:41

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.