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. System info
Forum Updated to NodeBB v4.3 + New Features

System info

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 500 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.
  • N Offline
    N Offline
    nnzz
    wrote on last edited by
    #1

    I can't find some things I need in QSysInfo
    I need:

    1. Processor info
    2. GPU name and version
    3. DirectX version (if installed)
      Thx
    raven-worxR JonBJ 2 Replies Last reply
    0
    • N nnzz

      I can't find some things I need in QSysInfo
      I need:

      1. Processor info
      2. GPU name and version
      3. DirectX version (if installed)
        Thx
      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @nnzz
      you could run dxdiag /t dxdiag.txt via QProcess and parse the txt file for your info.
      Or dxdiag /x dxdiag.xml might be easier to parse (e.g. using QDomDocument).

      The file contains several CPU, GPU and DirectX infos (and much more)

      (dxdiag comes along with DirectX)

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      3
      • N nnzz

        I can't find some things I need in QSysInfo
        I need:

        1. Processor info
        2. GPU name and version
        3. DirectX version (if installed)
          Thx
        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #3

        @nnzz
        Qt is platfom-independent. Therefore it's only going to supply common information, e.g. DirectX is Windows only. If QSysInfo does not have what you want you are going to have discover what the native C library calls are for your platform and call them. [Edit] Or, as @raven-worx has shown, maybe there's a command you could run and parse its output (though obviously that's slower than a native call).

        1 Reply Last reply
        4

        • Login

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