How can I associate files with certain extension (.qss) with the program?
Advance many thanks for your help!
Windows and Linux
on windows :
in explorer Right mouse button : open with.
choose your program and make sure you use the checkbox to use that program everytime.
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)
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.