Results 1 to 3 of 3

Thread: Issues with Qt::StatusTipRole

  1. #1
    Join Date
    Aug 2009
    Posts
    23
    Thanks
    3

    Default Issues with Qt::StatusTipRole

    Hi all,

    I am trying to display message in the status bar but I encounter some problems.

    I do have a main window containing several widgets.
    In a specific widget which includes a treeView, I would like to display status messages when the user roll on cells and headers.

    To do so, I use Qt::StatusTipRole in both QAbstractItemModel::data() and QAbstractItemModel::headerData() methods.

    For the cells, I am able to display the status message correctly but it won't be clear when I roll on an empty cell.
    For the headers, it doesn't work as the headerData() method is never called for the Qt::StatusTipRole.
    Last problem, the status message is not clear when I go outside this specific widget.

    Somebody already knows this problem so I can get some hints?
    Should I use the slots QStatusBar::clearMessage() from QStatusBar?

    Lionel

  2. #2
    Join Date
    Jun 2008
    Posts
    88
    Thanks
    4
    Thanked 4 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11
    Wiki edits
    1

    Default Re: Issues with Qt::StatusTipRole

    I was looking for the same thing, found the answer here:

    http://www.qtcentre.org/forum/f-qt-p...ole-13322.html

    Qt Code:
    1. treeview.viewport()->setMouseTracking(true);
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Aug 2009
    Posts
    23
    Thanks
    3

    Default Re: Issues with Qt::StatusTipRole

    Unfortunately I already activated the mouse tracking on the viewport but it didn't help.

    Thanks for your input.

    Regards,
    Lionel

Similar Threads

  1. QSqlDatabase connectivity issues
    By ToddAtWSU in forum Qt Programming
    Replies: 2
    Last Post: 16th July 2008, 12:58
  2. Using QGraphicsView as a Splash Screen (repaint issues)
    By chezifresh in forum Qt Programming
    Replies: 3
    Last Post: 4th June 2008, 21:22
  3. Issues updating to QMdiArea
    By fnmblot in forum Qt Programming
    Replies: 9
    Last Post: 17th December 2007, 18:37
  4. Speed, transparency, and drop issues with QGraphicsView
    By jefferai in forum Qt Programming
    Replies: 16
    Last Post: 30th June 2007, 16:14
  5. MySql plugin driver issues
    By stevey in forum Installation and Deployment
    Replies: 11
    Last Post: 20th September 2006, 13:45

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.