how to add description properties
-
wrote on 18 Jul 2024, 05:14 last edited by
-
wrote on 18 Jul 2024, 07:07 last edited by 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.
-
wrote on 18 Jul 2024, 07:13 last edited byThis post is deleted!
-
wrote on 18 Jul 2024, 07:16 last edited by
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)
-
@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.
-
wrote on 18 Jul 2024, 08:40 last edited by
@Blackzero Then check @hskoglund 's answer.
You can also look at https://doc.qt.io/qt-6/qmake-variable-reference.html#qmake-target-description -
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)
wrote on 18 Jul 2024, 08:41 last edited by@hskoglund yes it works
-
@Blackzero Then check @hskoglund 's answer.
You can also look at https://doc.qt.io/qt-6/qmake-variable-reference.html#qmake-target-description
1/8