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. Use hashes in my app
Qt 6.11 is out! See what's new in the release blog

Use hashes in my app

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 3 Posters 3.3k 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.
  • J Offline
    J Offline
    Jeronimo
    wrote on last edited by
    #1

    Hi it's possible to use hashes in code. For example i will have different applications and i need to difference each one. I can use one hash to difference each one?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should explain a bit more. What are these different applications ? What makes them not different that you need to have hashes to differentiate them from one another ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      J 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        You should explain a bit more. What are these different applications ? What makes them not different that you need to have hashes to differentiate them from one another ?

        J Offline
        J Offline
        Jeronimo
        wrote on last edited by Jeronimo
        #3

        @SGaist These different app's only is one game done in qt. I want that each one has one hash different. yeah! Like name unique.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Where are you getting these names from ? What are these applications ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          J 3 Replies Last reply
          0
          • SGaistS SGaist

            Where are you getting these names from ? What are these applications ?

            J Offline
            J Offline
            Jeronimo
            wrote on last edited by Jeronimo
            #5

            @SGaist It's one game programmed with QT. The name is only one "alias"

            1 Reply Last reply
            0
            • SGaistS SGaist

              Where are you getting these names from ? What are these applications ?

              J Offline
              J Offline
              Jeronimo
              wrote on last edited by
              #6

              @SGaist different applications are one game done in qt

              1 Reply Last reply
              0
              • SGaistS SGaist

                Where are you getting these names from ? What are these applications ?

                J Offline
                J Offline
                Jeronimo
                wrote on last edited by
                #7

                @SGaist i want that each game i compile have one different name with one hash is possible?

                mrjjM 1 Reply Last reply
                0
                • J Jeronimo

                  @SGaist i want that each game i compile have one different name with one hash is possible?

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

                  @Jeronimo
                  Hi
                  I might not fully understand what you ask, but if it that each game copy has an ID so u can
                  tell them apart then you could also use
                  http://doc.qt.io/qt-5/quuid.html#details
                  To give each .exe a GUID.
                  https://en.wikipedia.org/wiki/Globally_unique_identifier

                  J 1 Reply Last reply
                  1
                  • mrjjM mrjj

                    @Jeronimo
                    Hi
                    I might not fully understand what you ask, but if it that each game copy has an ID so u can
                    tell them apart then you could also use
                    http://doc.qt.io/qt-5/quuid.html#details
                    To give each .exe a GUID.
                    https://en.wikipedia.org/wiki/Globally_unique_identifier

                    J Offline
                    J Offline
                    Jeronimo
                    wrote on last edited by
                    #9

                    @mrjj i can save the value generated for QUuid::createUuid like one string?? what does this generate all time one new id¿?

                    mrjjM 1 Reply Last reply
                    0
                    • J Jeronimo

                      @mrjj i can save the value generated for QUuid::createUuid like one string?? what does this generate all time one new id¿?

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

                      @Jeronimo
                      yes they can be strings
                      https://www.guidgenerator.com/
                      like
                      "a904beb4-3273-4433-a59f-7d1128a7814f"

                      ALternative just use generator to have say 1000 GUID and use them as u want.

                      1 Reply Last reply
                      1

                      • Login

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