Results 1 to 2 of 2

Thread: How to implement delegate in QHeaderView

  1. #1
    Join Date
    May 2012
    Location
    India
    Posts
    51
    Thanks
    4
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Windows

    Default How to implement delegate in QHeaderView

    I have created one table by using QTableview and QAbstractTableModel . i have added some vertical header by using QHeaderView . In one of the header cell i want to use delegate ..

    I am using the delegate but it does not have any impact ..

    Is anywhere i am doing wrong ?

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to implement delegate in QHeaderView

    Docs say
    Note: Each header renders the data for each section itself, and does not rely on a delegate. As a result, calling a header's setItemDelegate() function will have no effect.
    Appearance.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

Similar Threads

  1. Subclassing QHeaderView
    By T4ng10r in forum Qt Programming
    Replies: 7
    Last Post: 20th August 2011, 19:20
  2. QHeaderView
    By waynew in forum Qt Programming
    Replies: 2
    Last Post: 25th December 2009, 20:42
  3. QHeaderView and its size
    By area51 in forum Qt Programming
    Replies: 1
    Last Post: 9th October 2009, 08:26
  4. QHeaderView not resizing
    By ericwny in forum Newbie
    Replies: 4
    Last Post: 6th June 2008, 11:03
  5. QHeaderView
    By gyre in forum Qt Tools
    Replies: 1
    Last Post: 25th September 2007, 16:35

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.