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. Portable way to uniquely identify machine

Portable way to uniquely identify machine

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.6k Views 2 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.
  • D Offline
    D Offline
    delt
    wrote on last edited by
    #1

    Hello everyone, it's been a while!

    I'm starting a new project based on qt, this one will be a commercial program. For licensing purposes, i need a portable way of identifying a device on which the software will be running, with a few features in mind:

    • Portable: at least linux, mac, windows - preferably also for android and ios.
    • (on desktop platforms) Will not change if the user adds RAM, or changes hard disk(s) / cpu / network card(s) etc.
    • Therefore preferably based on the motherboard or some other basic component of the machine
    • Solid: something like a UUID would be great.

    ....any idea what class and/or function(s) i could use for this? Any advice will be greatly appreciated!

    ? 1 Reply Last reply
    0
    • D delt

      Hello everyone, it's been a while!

      I'm starting a new project based on qt, this one will be a commercial program. For licensing purposes, i need a portable way of identifying a device on which the software will be running, with a few features in mind:

      • Portable: at least linux, mac, windows - preferably also for android and ios.
      • (on desktop platforms) Will not change if the user adds RAM, or changes hard disk(s) / cpu / network card(s) etc.
      • Therefore preferably based on the motherboard or some other basic component of the machine
      • Solid: something like a UUID would be great.

      ....any idea what class and/or function(s) i could use for this? Any advice will be greatly appreciated!

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by A Former User
      #2

      @delt said:

      something like a UUID would be great

      Hi! We have QUuid Class.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        delt
        wrote on last edited by
        #3

        Hello, guten Tag!

        Thanks for the info about the QUuid class. But i can't find any function in that class that generates a key for identifying the device at run-time.

        raven-worxR 1 Reply Last reply
        0
        • D delt

          Hello, guten Tag!

          Thanks for the info about the QUuid class. But i can't find any function in that class that generates a key for identifying the device at run-time.

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @delt
          take a look at QtSystems module. This module is still WIP and probably not as stable/portable yet. Will hopefully be merged to Qt master sometime in the future.

          nevertheless it's worth checking it out. It contains a QDeviceInfo class. It has a method uniqueDeviceID().
          But i doubt it fits your mentioned requirements.

          Since you want to allow certain HW changes on the system you would need to use the operating system's facilities to get the information yourself. On mobile platforms you could sue IMEI for example.
          On desktop platforms many applications use the network MAC address to identify a system. Since it's easy to retrieve and implicitly unique. But be aware that the MAC address can easily be changed by the user using some programs. So i wouldn't let rely any critical application on this.

          --- 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
          0

          • Login

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