Results 1 to 10 of 10

Thread: Rich Text in QTableWidgetItem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Location
    Iowa, USA
    Posts
    21
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Rich Text in QTableWidgetItem

    Yes. I did set it to open external link. I'm thinking I'm just being dumb right now and I'm not sure where. Do I need to have the delegate hold an instance of a QLabel, or is it ok that I create a QLabel during the paint event and that once the paint is over it doesn't exist anymore?

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

    Default Re: Rich Text in QTableWidgetItem

    The delegate doesn't hold anything. You can either use a real label (which will slown down your application significantly if you want to do that for every widget) or handle all the events you want manually from within the delegate's editor events handler.

  3. #3
    Join Date
    Aug 2008
    Location
    Iowa, USA
    Posts
    21
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Rich Text in QTableWidgetItem

    So
    1. Go back to QTextDocument as QLabel is slow
    2. Using the same delegate as before, handle a user click just as I'm now handling the paint events


    Thanks

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 09:49
  2. QTableWidgetItem Text Editing
    By ToddAtWSU in forum Qt Programming
    Replies: 2
    Last Post: 17th March 2009, 02:23
  3. QTextEdit + paste rich text as plain text only
    By Yong in forum Qt Programming
    Replies: 2
    Last Post: 6th February 2008, 16:45
  4. Replies: 3
    Last Post: 13th December 2007, 16:10
  5. Rich Text Format
    By Kapil in forum Newbie
    Replies: 1
    Last Post: 4th October 2006, 10:53

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
  •  
Qt is a trademark of The Qt Company.