Results 1 to 4 of 4

Thread: How to query CPU usage, memory status, HDD status on WIN/LINUX

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2009
    Location
    Romania, Iasi
    Posts
    18
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question How to query CPU usage, memory status, HDD status on WIN/LINUX

    Hello fellows,

    Does somebody know if there are specific Qt methods to query hardware status (CPU usage, memory and HDD statuses) on Windows and Linux platforms or there is no way to avoid implementation using native APIs?

    Thanks in advance!
    Victor

  2. #2
    Join Date
    Oct 2009
    Location
    Mexico
    Posts
    81
    Thanks
    6
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to query CPU usage, memory status, HDD status on WIN/LINUX

    Qt dont have especific funtion for get hardware status.

    try to use the API that the OS provide for that porpuse. and use QT for build the UI only.

    sorry my poor english

  3. #3
    Join Date
    Dec 2009
    Location
    Romania, Iasi
    Posts
    18
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to query CPU usage, memory status, HDD status on WIN/LINUX

    Thanks ecanela, I was 99% sure that this is the path I should follow.

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

    Default Re: How to query CPU usage, memory status, HDD status on WIN/LINUX

    Hi, on Linux you can read the files in /proc to get those values.
    On Windows you will have to use the native API.

    Ginsengelf

  5. The following user says thank you to Ginsengelf for this useful post:

    vcernobai (8th July 2010)

Similar Threads

  1. Status Bar
    By waynew in forum Newbie
    Replies: 3
    Last Post: 21st November 2009, 10:07
  2. Getting Printer Status...
    By aalekhm in forum Qt Programming
    Replies: 0
    Last Post: 26th October 2009, 06:34
  3. Status Bar in a SUB WINDOW.
    By Cutey in forum Qt Programming
    Replies: 3
    Last Post: 23rd July 2008, 08:42
  4. Status Widget
    By user_mail07 in forum Qt Programming
    Replies: 4
    Last Post: 18th June 2008, 08:51
  5. need help with the status bar
    By filmfreak in forum Qt Programming
    Replies: 2
    Last Post: 15th February 2006, 09:34

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.