Results 1 to 3 of 3

Thread: QTreeView and drawRow problem

  1. #1
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    8
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QTreeView and drawRow problem

    Hello!
    I'm trying to make a custom drawing of current item of QTreeView. So I reimplemended drawRow() at the subclass. But my drawRow does not runs at all. My QTreeView-subclass still calls the QTreeView::drawRow.
    It's strange. Other reimplemented functions such as keyPressEvent works fine.

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

    Default Re: QTreeView and drawRow problem

    Check that the signatures match (including the const modifier).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    roxton (27th February 2013)

  4. #3
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    8
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTreeView and drawRow problem

    Yes! Thanks a lot!

Similar Threads

  1. QTreeView::drawRow() text eliding
    By peppermg in forum Qt Programming
    Replies: 0
    Last Post: 16th April 2010, 20:37
  2. QTreeView Problem.
    By kaushal_gaurav in forum Qt Programming
    Replies: 2
    Last Post: 22nd December 2009, 05:55
  3. QTreeView::drawRow() problem
    By yogeshm02 in forum Qt Programming
    Replies: 5
    Last Post: 14th October 2009, 21:13
  4. QTreeView Problem
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 1
    Last Post: 7th March 2009, 10:32
  5. Problem with index in a QTreeView
    By hubert_p in forum Qt Programming
    Replies: 4
    Last Post: 22nd October 2006, 15:54

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.