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 454 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 last edited by
    #1

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

    JonBJ 1 Reply Last reply
    0
    • B Blackzero

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

      JonBJ Online
      JonBJ Online
      JonB
      wrote on 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
      1
      • S Offline
        S Offline
        Scottnivens4
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • hskoglundH Offline
          hskoglundH Offline
          hskoglund
          wrote on 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
          2
          • JonBJ JonB

            @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 last edited by
            #5

            @JonB I'm using MSVC2019_64 and using qmake.

            B 1 Reply Last reply
            0
            • B Blackzero

              @JonB I'm using MSVC2019_64 and using qmake.

              B Offline
              B Offline
              Bonnie
              wrote on 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
              0
              • hskoglundH hskoglund

                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 last edited by
                #7

                @hskoglund yes it works

                1 Reply Last reply
                0
                • B Bonnie

                  @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 last edited by
                  #8

                  @Bonnie thank you for providing the documentation

                  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