What you're asking for is OS-specific, and not really a Qt question. The OS has to know to start one app or another. If you're packaging your program for Linux, you usually want to include the file association in a post-install script of your package.

Have a look at Wikipedia http://en.wikipedia.org/wiki/File_association to start .