[Interest] Launch Qt Desktop Application(Windows) by clicking custom file
Federico Buti
bacarozzo at gmail.com
Mon Aug 31 20:15:00 CEST 2015
Hi,
you can follow the standard example that you can find here
<http://doc.qt.io/qtinstallerframework/qt-installer-framework-registerfileextension-example.html>
.
The relevant part is the "RegisterFileType" operation.
It should look like this:
component.addOperation("RegisterFileType", "<file_extension>",
"@TargetDir@\\<executablename.exe>"
+ " '%1'",
"<description>",
"application/x-binary",
"@TargetDir@/<icon_file.ico>",
"ProgId=<executablename.file_extension>");
Obviously the "<...>" are placeholders for your actual data.
Hope this helps.
Br,
F.
On 31 August 2015 at 18:44, Berkay Elbir <berkayelbir at gmail.com> wrote:
> Thank you for your answer, Thiago.
>
> I use Qt Installer 1.5.0. But I did not make file association before. How
> can I do this process in installer?
>
>
> On Mon, Aug 31, 2015 at 7:01 PM, Thiago Macieira <
> thiago.macieira at intel.com> wrote:
>
>> On Monday 31 August 2015 18:45:54 Berkay Elbir wrote:
>> > Hello all,
>> >
>> > I want to ask you that How can I launch my Qt desktop
>> application(Windows)
>> > when double click to a custom file that is used by my application?
>> >
>> > For example, when I double click myFile.x then my application will
>> launch
>> > and open this file.
>>
>> In your installer, make the file association.
>>
>> The Qt Installer Framework may or may not support the functionality.
>> Please
>> check there. If you're using another installation framework, please
>> consult
>> its documentation.
>>
>> --
>> Thiago Macieira - thiago.macieira (AT) intel.com
>> Software Architect - Intel Open Source Technology Center
>>
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150831/f7441ab8/attachment.html>
More information about the Interest
mailing list