Results 1 to 2 of 2

Thread: QAbstractTableModel and tooltip

  1. #1
    Join Date
    Apr 2009
    Posts
    32
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QAbstractTableModel and tooltip

    Hi,

    I am subclassing a QAbstractTableModel which is being displayed in a QTableView. How do I display tooltips for the individual table cells displayed in the QTableView?

    Best regards,

    Mads
    Last edited by mpi; 29th March 2010 at 19:48.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QAbstractTableModel and tooltip

    See QAbstractItemModel::data() with Qt::ToolTipRole.

    Lykurg

  3. The following 2 users say thank you to Lykurg for this useful post:

    mpi (30th March 2010), sheeeng (30th July 2010)

Similar Threads

  1. Performance with QTableView and QAbstractTableModel
    By MBex in forum Qt Programming
    Replies: 3
    Last Post: 25th February 2009, 08:04
  2. Replies: 3
    Last Post: 29th January 2009, 08:38
  3. QAbstractTableModel and sort
    By foxyproxy in forum Qt Programming
    Replies: 7
    Last Post: 25th March 2008, 09:30
  4. Using QAbstractTableModel.parent
    By Max Yaffe in forum Newbie
    Replies: 7
    Last Post: 15th June 2007, 15:21
  5. QAbstractTableModel for QTreeView?
    By Michiel in forum Qt Programming
    Replies: 5
    Last Post: 15th May 2007, 09:09

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.