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. How to get MachineUniqueId() in QT

How to get MachineUniqueId() in QT

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 1.6k 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.
  • B Offline
    B Offline
    Bharth
    wrote on last edited by
    #1

    Hi Guys.... im trying to get system information using QSysInfo im getting all the inforamation except machineUniqueId() please help me to solve this......

    mrjjM 1 Reply Last reply
    0
    • B Bharth

      Hi Guys.... im trying to get system information using QSysInfo im getting all the inforamation except machineUniqueId() please help me to solve this......

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Bharth
      Hi
      https://forum.qt.io/topic/91882/qsysinfo-machineuniqueid-empty-on-windows

      Might not be supported on the platform you are on.

      1 Reply Last reply
      3
      • B Offline
        B Offline
        Bharth
        wrote on last edited by
        #3

        is there any other way to get machineUniqueId()????

        1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #4

          There WMI(Windows Management Interface) in Windows. I feel this is the only way to machine unique id.

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          1 Reply Last reply
          1
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi
            Just as a note:
            Win 10 , Qt 5.11.1 visual studio compiler 2017
            QByteArray b=QSysInfo::machineUniqueId();
            qDebug() << b;
            give me
            6ed084c0-6519-4b12-ae70-6434ac1263..
            so does in fact return something here.

            So what platform and Qt version are you trying this with?

            1 Reply Last reply
            2
            • B Offline
              B Offline
              Bharth
              wrote on last edited by
              #6

              @mrjj said in How to get MachineUniqueId() in QT:

              QByteArray b=QSysInfo::machineUniqueId();
              qDebug() << b;

              im getting empty value
              QT version 5.11.2
              windows 10
              visual studio 2012

              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