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. QSystemDeviceInfo equivalent for Desktop & Laptops ?
Forum Update on Monday, May 27th 2025

QSystemDeviceInfo equivalent for Desktop & Laptops ?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.3k Views
  • 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.
  • P Offline
    P Offline
    PSI-lbc
    wrote on last edited by
    #1

    Is there a class equivalent for QSystemDeviceInfo that can be used for Desktop & Laptops (Win/Mac) ?

    The QSystemDeviceInfo class appears to be only for handhelds..is that correct ?

    Looking for a way to get the..

    manufacturer
    model
    productName

    ..of a desktop or laptop. It would be nice if what ever is suggested would work for both Windows and Macs.

    I've found and tried..

    QStringList environment = QProcess::systemEnvironment();

    ..but it returns a list of stuff that is not consistent for both Windows and Mac machines.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      QProcess::systemEnvironment returns the environment variables, not information about the OS and hardware.

      AFAIK, you can use QtMobility also on the Desktop, can't you? Then you could yust use the same methods...

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0

      • Login

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