Results 1 to 4 of 4

Thread: Open URL on Non Default Browser

  1. #1
    Join Date
    Jan 2009
    Posts
    53
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Question Open URL on Non Default Browser

    Hi,

    How do I opens an URL in a QLabel using non default browser?

    E.g.

    Default Browser is Mozilla Firefox. But, I want to open the URL using Internet Explorer only.

    Please advice.

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,365
    Thanks
    3
    Thanked 5,014 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Open URL on Non Default Browser

    Connect to the linkActivated() signal in the label and call your browser there using QProcess::startDetached().
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2009
    Posts
    53
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Open URL on Non Default Browser

    Quote Originally Posted by wysota View Post
    Connect to the linkActivated() signal in the label and call your browser there using QProcess::startDetached().
    Thanks, wysota. Do you have an example on that?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,365
    Thanks
    3
    Thanked 5,014 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Open URL on Non Default Browser

    Quote Originally Posted by sheeeng View Post
    Thanks, wysota. Do you have an example on that?
    I'm sure you can find lots of examples of connecting signals in the Qt reference manual.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. add link that open web browser on unix
    By asafb in forum Qt Programming
    Replies: 7
    Last Post: 25th January 2009, 21:55
  2. Replies: 7
    Last Post: 5th January 2009, 08:27
  3. How to open a browser ?
    By probine in forum Qt Programming
    Replies: 1
    Last Post: 4th December 2006, 18:21
  4. Opening swf file in the default browser
    By munna in forum Qt Programming
    Replies: 16
    Last Post: 5th May 2006, 09:33
  5. How to open a document with the default application?
    By SkripT in forum Qt Programming
    Replies: 7
    Last Post: 30th April 2006, 08:47

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.