Results 1 to 5 of 5

Thread: QTextEdit for Hyperlink

  1. #1

    Default QTextEdit for Hyperlink

    I typed
    <a href="http://www.qtcentre.org">qtcentre</a>
    into a textedit box with qdesigner, and used "ctrl+T" for testing. It showed me "qtcentre" in the box, but I could not open the hyperlink by clicking on it. Why? How could I make it?
    Thanks!
    Last edited by blueteeth; 30th January 2008 at 18:54.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTextEdit for Hyperlink

    May be this thread might be useful to you

  3. #3
    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: QTextEdit for Hyperlink

    You could use QTextBrowser instead of QTextEdit and set openExternalLinks property to true.
    J-P Nurmi

  4. #4

    Default Re: QTextEdit for Hyperlink

    Quote Originally Posted by jpn View Post
    You could use QTextBrowser instead of QTextEdit and set openExternalLinks property to true.
    I am using qt3 now, it seems only in qt4 QTextBrowser has openExternalLinks property

  5. #5
    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: QTextEdit for Hyperlink

    Quote Originally Posted by blueteeth View Post
    I am using qt3 now, it seems only in qt4 QTextBrowser has openExternalLinks property
    You might want to update your profile that you're still using Qt3. And next time you start a thread, could you mark it as related to either Qt3 or Qt4, please?

    Also, you might want to consider switching to today's technology, Qt4 that is. Qt4 has been out for some 2.5 years already. As far as I understood, Qt3 is no more being even maintained.
    J-P Nurmi

Similar Threads

  1. QTextEdit slow to insert text
    By thomaspu in forum Qt Programming
    Replies: 4
    Last Post: 10th January 2008, 12:05
  2. Re-implement mouse events of QTextEdit
    By Ankitha Varsha in forum Qt Programming
    Replies: 2
    Last Post: 14th October 2006, 16:55
  3. QTextEdit API questions (plain text)
    By Gaspar in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 06:03
  4. [QT 4] QTextEdit performance
    By fellobo in forum Qt Programming
    Replies: 8
    Last Post: 6th March 2006, 19:27
  5. Obtaining clean (x)html from QTextEdit
    By ccf_h in forum Qt Programming
    Replies: 1
    Last Post: 5th February 2006, 14:47

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.