Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Support an application's own URL scheme from both the application and any web browser
Forum Updated to NodeBB v4.3 + New Features

Support an application's own URL scheme from both the application and any web browser

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    agarny
    wrote on last edited by
    #1

    Hi,

    I would like my cross-platform application (Windows, Linux and OS X) to support its own URL scheme (e.g. myapp://some.stuff/). Indeed, I have some HTML documentation which my users can access from both my application's website as well as from the application itself (using QtHelp and a QWebView widget). So, what I would like is that if I have a link, in my HTML documentation, which points to something like myapp://some.stuff/, then my application would handle that URL, no matter whether that link is opened from my application or some web browser.

    Any ideas?...

    Cheers, Alan.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AcerExtensa
      wrote on last edited by
      #2

      It's called URL Protocol Handler.
      For windows it is easy done with the registry entry:
      http://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx

      You can also register URL Handlers under Gnome & KDE, have no idea about Mac.

      God is Real unless explicitly declared as Integer.

      1 Reply Last reply
      1
      • A Offline
        A Offline
        agarny
        wrote on last edited by
        #3

        Thanks AcerExtensa. I have since found out a bit more about what I am after (e.g. see http://kb.mozillazine.org/Register_protocol) and indeed it's dead easy on Windows, while there doesn't seem to be a simple solution as such on Linux and OS X.

        1 Reply Last reply
        1
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          There is no support in Qt for these things, but it seems that it is possible to register your own URLs or use the tag: url scheme for things like these. However, that is not Qt related.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved