Results 1 to 2 of 2

Thread: regarding QTextEdit control

  1. #1
    Join Date
    Mar 2006
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default regarding QTextEdit control

    Hi All

    I am vijay using Vs 2005 with Qt 4.1. I have QTextEdit control on the form. I want to display some plain text first and then i want to display "www.somelink.com" like this

    see for example it should be like this

    Welcome welcome welcome
    click here "www.somelink.com"

    link should be in blue color and it should get hand mouse cursor when we move on it

    What can i do

    Warm regards
    vijayu

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: regarding QTextEdit control

    If you want to catch the event when someone clicks on the link then use QTextBrowser otherwise use QTextEdit.

    Try:

    <p>Welcome welcome welcome</p>
    <p>click here <a href = "#">www.somelink.com</a><p>

Similar Threads

  1. Replies: 10
    Last Post: 17th July 2014, 10:52
  2. Drawing on QTextEdit
    By jgrauman in forum Qt Programming
    Replies: 3
    Last Post: 7th February 2009, 09:40
  3. QTextEdit slow to insert text
    By thomaspu in forum Qt Programming
    Replies: 4
    Last Post: 10th January 2008, 12:05
  4. QTextEdit control
    By vijay anandh in forum Qt Programming
    Replies: 2
    Last Post: 31st May 2006, 13:14
  5. Replies: 6
    Last Post: 3rd February 2006, 09:48

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.