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 add description properties
Forum Updated to NodeBB v4.3 + New Features

how to add description properties

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 5 Posters 435 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
    Blackzero
    wrote on 18 Jul 2024, 05:14 last edited by
    #1

    How to add version description and copyright in application properties in qt creator?
    Screenshot 2024-07-18 120341.jpg

    J 1 Reply Last reply 18 Jul 2024, 07:07
    0
    • B Blackzero
      18 Jul 2024, 05:14

      How to add version description and copyright in application properties in qt creator?
      Screenshot 2024-07-18 120341.jpg

      J Offline
      J Offline
      JonB
      wrote on 18 Jul 2024, 07:07 last edited by JonB
      #2

      @Blackzero
      This is only a guess, but are these kind of "properties" specified and added from a manifest file during linking? That may require MSVC/LINK (i.e. not available if you use MinGW/ld)? Alternatively they might come via an MS resource file (RC)? I think you need to discover this before you look at how to achieve it from Creator.

      UPDATE
      Seems like it is indeed via resources/RC per https://stackoverflow.com/questions/1022449/how-to-change-an-executables-properties-windows or https://learn.microsoft.com/en-gb/windows/win32/menurc/versioninfo-resource. So I think you need to run an RC step and link the resulting RES into your executable.

      How you do that probably depends on whether you are qmake or cmake. That would be preferable to some step from within Creator. Not my area, someone else may help you with that.

      B 1 Reply Last reply 18 Jul 2024, 08:37
      1
      • S Offline
        S Offline
        Scottnivens4
        wrote on 18 Jul 2024, 07:13 last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • H Offline
          H Offline
          hskoglund
          wrote on 18 Jul 2024, 07:16 last edited by
          #4

          Yes to add to @JonB:
          if your project is built with a .pro file (i.e. not CMake) then you can add these lines to the .pro file:

          QMAKE_TARGET_COMPANY=MyMegaCorporation
          QMAKE_TARGET_COPYRIGHT=MyMegaCorporation
          

          (note: only tested this with MSVC2019, don't know if they work for MinGW)

          B 1 Reply Last reply 18 Jul 2024, 08:41
          2
          • J JonB
            18 Jul 2024, 07:07

            @Blackzero
            This is only a guess, but are these kind of "properties" specified and added from a manifest file during linking? That may require MSVC/LINK (i.e. not available if you use MinGW/ld)? Alternatively they might come via an MS resource file (RC)? I think you need to discover this before you look at how to achieve it from Creator.

            UPDATE
            Seems like it is indeed via resources/RC per https://stackoverflow.com/questions/1022449/how-to-change-an-executables-properties-windows or https://learn.microsoft.com/en-gb/windows/win32/menurc/versioninfo-resource. So I think you need to run an RC step and link the resulting RES into your executable.

            How you do that probably depends on whether you are qmake or cmake. That would be preferable to some step from within Creator. Not my area, someone else may help you with that.

            B Offline
            B Offline
            Blackzero
            wrote on 18 Jul 2024, 08:37 last edited by
            #5

            @JonB I'm using MSVC2019_64 and using qmake.

            B 1 Reply Last reply 18 Jul 2024, 08:40
            0
            • B Blackzero
              18 Jul 2024, 08:37

              @JonB I'm using MSVC2019_64 and using qmake.

              B Offline
              B Offline
              Bonnie
              wrote on 18 Jul 2024, 08:40 last edited by
              #6

              @Blackzero Then check @hskoglund 's answer.
              You can also look at https://doc.qt.io/qt-6/qmake-variable-reference.html#qmake-target-description

              B 1 Reply Last reply 18 Jul 2024, 08:43
              0
              • H hskoglund
                18 Jul 2024, 07:16

                Yes to add to @JonB:
                if your project is built with a .pro file (i.e. not CMake) then you can add these lines to the .pro file:

                QMAKE_TARGET_COMPANY=MyMegaCorporation
                QMAKE_TARGET_COPYRIGHT=MyMegaCorporation
                

                (note: only tested this with MSVC2019, don't know if they work for MinGW)

                B Offline
                B Offline
                Blackzero
                wrote on 18 Jul 2024, 08:41 last edited by
                #7

                @hskoglund yes it works

                1 Reply Last reply
                0
                • B Bonnie
                  18 Jul 2024, 08:40

                  @Blackzero Then check @hskoglund 's answer.
                  You can also look at https://doc.qt.io/qt-6/qmake-variable-reference.html#qmake-target-description

                  B Offline
                  B Offline
                  Blackzero
                  wrote on 18 Jul 2024, 08:43 last edited by
                  #8

                  @Bonnie thank you for providing the documentation

                  1 Reply Last reply
                  0

                  1/8

                  18 Jul 2024, 05:14

                  • Login

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