Associate
-
There is no way to do it in Qt.
On windows can either use the native OS API or the "appropriate command line tools":http://commandwindows.com/assoc.htm (you could of course also add the appropriate registry entries yourself, but that might not work on future Windows version).
On Linux it is up to the window manager to do that. Just use google to see how to do it. -
here is the solution for windows (it worked for me)
http://developer.qt.nokia.com/wiki/Assigning_a_file_type_to_an_Application_on_Windows -
This wiki article describes a class you can use as editor main window class. it enables associating file extension to the exe during first start, like MFC does. It also enables MDI handling do newly opened files are opened in the running process.
But this code only works for windows, definitly.