Results 1 to 2 of 2

Thread: Question on QAbstractItemModel vs. QTableView

  1. #1
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Question on QAbstractItemModel vs. QTableView

    Hi,

    Can I feed QTableView with an HTML format string from the QAbstractItemModel?

    For instance, if I return
    <html> data1 <br> <hr> <br> data2 </html>
    from QAbstractItemModel::data(...), how to let the QTableView display like the following?

    data1
    -------
    data2

  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: Question on QAbstractItemModel vs. QTableView

    I'm afraid QItemDelegate doesn't support rich text. See this thread.
    J-P Nurmi

Similar Threads

  1. QTableView currentChanged <> selecting header
    By Everall in forum Qt Programming
    Replies: 4
    Last Post: 1st April 2009, 09:24
  2. QTableView Question
    By kandalf in forum Qt Programming
    Replies: 1
    Last Post: 4th February 2007, 19:02
  3. QTableView
    By fpujol in forum Qt Programming
    Replies: 4
    Last Post: 16th January 2007, 09:17
  4. Multi-line messages in QTableView
    By Conel in forum Qt Programming
    Replies: 6
    Last Post: 13th April 2006, 14:49
  5. User Interface with QTableView
    By Brandybuck in forum Qt Programming
    Replies: 1
    Last Post: 23rd March 2006, 00:24

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.