PDA

View Full Version : Register QT Application as the URL Scheme handler for mailto links



manekineko
12th November 2009, 18:31
I'm working on a cross platform email application written in QT, and I'd like it to properly catch and handle mailto:// links clicked on by the user. What's the best way to register a QT application to handle a URL scheme?

The only way I've found from a Google search seems to be this page:
http://burnttoys.blogspot.com/2008/07/adding-url-scheme-to-qt-application.html

It describes a series of complicated hack that require using a 3rd party installer to install a URL scheme in Windows and Mac, but is this really the only way? Also, what would I have to do to make this work on Linux as well?

olidem
13th November 2009, 18:40
I don't know of any built-in feature in qt that could do this for you. I think you will have to care for each single OS anew.