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. Detect internet browser on system
Forum Updated to NodeBB v4.3 + New Features

Detect internet browser on system

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 4.0k 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.
  • D Offline
    D Offline
    Dilshad
    wrote on 26 Jul 2010, 12:40 last edited by
    #1

    Hello All,
    Is it possible to detect which browsers are installed on the system?
    Also is it possible to open these browsers using Qt window by adding a button?
    Thanking you in advance.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on 26 Jul 2010, 12:54 last edited by
      #2

      For opening in default system browser you can use
      @bool QDesktopServices::openUrl ( const QUrl & url ) [static]@
      But AFAIK you cannot detect all browsers (btw it is near to impossible using non only Qt, but system API too, because not all browsers can be registered in registry (Windows case)/package management system (package-based Linux case)).

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Dilshad
        wrote on 26 Jul 2010, 13:01 last edited by
        #3

        Thanks for the reply, but if I know, that I have say 3 browsers on the system, then to open them using Qt, will I have to use something like QProcess and the installation path?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on 26 Jul 2010, 15:58 last edited by
          #4

          If you know path, where browser is located and you know what this browser is (to pass correct command line parameters to it) than you can you QProcess to run browser with parameters to open URL in it.

          1 Reply Last reply
          0

          1/4

          26 Jul 2010, 12:40

          • Login

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