Unsolved file extension association with app
-
Re: Using "RegisterFileType" in Qt Installer Framework
Can someone share a sample project on the file association with app. My problem is that my own custom extension file doesnot open by default on double click. I understnad that i have to it by adding it to registry for Windows. please share me a demo project on how to do it through Qt ?
-
@Amarjit123 Google gives me this: https://wiki.qt.io/Assigning_a_file_type_to_an_Application_on_Windows
-
@jsulm Thank you. It helped, I could able to understand, but while implementing I am facing issue. I tried to inherit my class from DocumentWindow class, but it does not recognize. Even I am not getting the right header file to include for this class. Could you please add the running sample code, if you have any which will help me in fixing the issue.
-
@jsulm "I have set my Qapp.exe as default application to open for sample.dat", This is mentioned by you in "https://forum.qt.io/topic/85443/how-to-find-the-path-of-the-file-that-launches-the-qt-application-from-explorer/19". Could you please give me the source code. i want to know how to implement default app to open your custom file extension type, that is file extension with app by modifying registry. i hope I am clear on my query
-
@Amarjit123 said in file extension association with app:
I tried to inherit my class from DocumentWindow class
Is your app a MDI app? If not then there is no need to inherit from DocumentWindow, which is explained in the link I posted...
-
@Amarjit123 said in file extension association with app:
Could you please give me the source code
What more source code do you need? The source code is in the link I already posted...