Results 1 to 5 of 5

Thread: open an external links

  1. #1
    Join Date
    Nov 2007
    Posts
    42
    Thanks
    11
    Qt products
    Qt4
    Platforms
    Unix/X11

    Post open an external links

    is there chance to open an external link(website link) directly by clicking the pushbutton

    or any other alternates !!!!!

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: open an external links

    For a push button you will have to actually write some code (a custom slot connected to button's clicked() signal) but with a label it's possible directly in Qt Designer. Just embed a link to label contents and change openExternalLinks property to true.
    J-P Nurmi

  3. #3
    Join Date
    Nov 2007
    Posts
    42
    Thanks
    11
    Qt products
    Qt4
    Platforms
    Unix/X11

    Post Re: open an external links

    yes i have made the customized slot as u said , and in that slot i wrote like this

    Qt Code:
    1. QUrl url;
    2. url.setUrl("http://doc.trolltech.com/4.3/qurl.html#setUrl");
    To copy to clipboard, switch view to plain text mode 

    but it is not opening the link
    Last edited by jpn; 17th January 2008 at 06:27. Reason: missing [code] tags

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: open an external links

    See QDesktopServices. QUrl only represents an URL.
    J-P Nurmi

  5. The following user says thank you to jpn for this useful post:

    sudheer (17th January 2008)

  6. #5
    Join Date
    Nov 2007
    Posts
    42
    Thanks
    11
    Qt products
    Qt4
    Platforms
    Unix/X11

    Smile Re: open an external links

    thank u very much

Similar Threads

  1. Replies: 16
    Last Post: 23rd May 2008, 10:12
  2. How to open external page link using tabwidget
    By jyoti in forum Qt Programming
    Replies: 2
    Last Post: 13th November 2006, 10:43
  3. link error for visual studio.net 2003
    By berlin in forum Newbie
    Replies: 9
    Last Post: 29th September 2006, 16:06
  4. Link Errors
    By magikalpnoi in forum Qt Programming
    Replies: 5
    Last Post: 25th September 2006, 22:04
  5. [Qt4.1]How to make links open browsers?
    By patcito in forum Qt Programming
    Replies: 8
    Last Post: 16th March 2006, 18:37

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.