Results 1 to 3 of 3

Thread: QTreeWidget And QItemDelegate

  1. #1
    Join Date
    Jan 2011
    Location
    Sri Lanaka
    Posts
    64
    Thanks
    39
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default QTreeWidget And QItemDelegate

    hi,
    is it possible use a QItemDelegate with QTreeWidget??
    I read somewhere even QTreeWidget is inherited from QTreeView using QItemDelegate is not possible..is this correct??
    If someone has used QItemDelegate with QTreeWidget can you please post a simple example

    Thanks

  2. #2
    Join Date
    Jan 2011
    Location
    Sri Lanaka
    Posts
    64
    Thanks
    39
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: QTreeWidget And QItemDelegate

    nobody uses ItemDelegate with QTreeWidget??

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QTreeWidget And QItemDelegate

    is it possible use a QItemDelegate with QTreeWidget??
    Yes
    I read somewhere even QTreeWidget is inherited from QTreeView using QItemDelegate is not possible..is this correct??
    No, this is not correct. A five minute test program could have confirmed this for you.
    If someone has used QItemDelegate with QTreeWidget can you please post a simple example
    You use a QItemDelegate on a QTableWidget/QTreeWidget the same way you do with a QTableView/QTreeView. You will find simple examples in the documentation, specifically Delegate classes and Spin Box Delegate.

  4. The following user says thank you to ChrisW67 for this useful post:

    deepal_de (18th January 2012)

Similar Threads

  1. QItemDelegate for painting QComboBox in QTreeWidget
    By naturalpsychic in forum Qt Programming
    Replies: 7
    Last Post: 23rd May 2011, 15:38
  2. QItemDelegate
    By Alex_123 in forum Qt Programming
    Replies: 1
    Last Post: 12th October 2008, 11:40
  3. Using most of QItemDelegate
    By joshuajcarson in forum Qt Programming
    Replies: 4
    Last Post: 6th October 2008, 16:02
  4. Replies: 2
    Last Post: 17th March 2008, 12:53
  5. Replies: 1
    Last Post: 19th October 2007, 01:29

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.