Results 1 to 2 of 2

Thread: adding image to header column of a table view

  1. #1
    Join Date
    Oct 2010
    Posts
    18
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default adding image to header column of a table view

    hi all,


    Could you please explain in steps how to proceed in adding a image to the table header columns.

    I have a table with 5 header columns (Eno, Ename, Sal, Designation, Address). when user sorts data in ascending order on ename column i need to add customized image( customized Up arrow image) next to Ename header column

    I hope i have cleared addressed my issue..

    please help me with a solution,

    Regards
    Nagesh

  2. #2
    Join Date
    Dec 2010
    Posts
    12
    Thanks
    3
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: adding image to header column of a table view

    use DecorationRole or paint()

Similar Threads

  1. how to add a image to table column header
    By nageshvk in forum Newbie
    Replies: 3
    Last Post: 25th December 2010, 13:34
  2. how to add a image to table column header
    By nageshvk in forum Qt Programming
    Replies: 3
    Last Post: 9th November 2010, 08:47
  3. Replies: 5
    Last Post: 3rd April 2010, 04:07
  4. How to set two rows in a table view Horizontal header?
    By sivollu in forum Qt Programming
    Replies: 11
    Last Post: 29th April 2009, 04:57
  5. How to customize horizontal header (diagonal header view)
    By vairamuthu.g in forum Qt Programming
    Replies: 4
    Last Post: 4th September 2008, 15:59

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.