Results 1 to 2 of 2

Thread: How i can place two icon in QtableWidget vertical header ( Decoration Role )

  1. #1
    Join Date
    Jul 2013
    Posts
    54
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Question How i can place two icon in QtableWidget vertical header ( Decoration Role )

    Hi, every body

    i have a QtableWidget, when the user changed the selection of row an icon showed , up to now there is no probleme

    i want to place another icon in verticalheader togother with the existing one,(not removing the exist icon), when the user start typing, or editing any cell in that

    QtableWidget!!

    is this possible , if so , how ?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,534
    Thanks
    13
    Thanked 1,576 Times in 1,505 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How i can place two icon in QtableWidget vertical header ( Decoration Role )

    You have two icons. You can only return a sngle image in the decoration role.
    Seems obviuos enough... Paint the two icon images into a single pixmap and return that.

Similar Threads

  1. change Qtablewidget vertical header displayrole
    By advseo32 in forum Qt Programming
    Replies: 10
    Last Post: 12th August 2013, 13:21
  2. Refreshing icon (decoration role) in a QListView
    By Marga in forum Qt Programming
    Replies: 1
    Last Post: 21st September 2011, 09:38
  3. Replies: 3
    Last Post: 20th January 2011, 13:24
  4. View decoration role empty on Windows
    By sebr in forum Qt Programming
    Replies: 5
    Last Post: 28th October 2007, 10:44
  5. Showing Icon in vertical header of a table
    By vishal.chauhan in forum Qt Programming
    Replies: 7
    Last Post: 15th January 2007, 10:44

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.