I invite your kind attention to this thread...
http://hmgforum.com/viewtopic.php?f=34&t=1675&start=0
I think you have resolved this with QIcon object. However it seems not working for me.
This is regarding two states of icon (on/off) image. Is this working for you?
Code: Select all
......
......
oItem := QTreeWidgetItem()
If ValType( cItemCaption ) != 'U'
oItem:setText( 0,cItemCaption )
Endif
If Valtype( aImages ) == 'A'
If len( aImages ) > 0
oImage := QIcon()
oNormalImage := QPixmap( aImages[1] )
oImage:addPixmap( oNormalImage,QIcon_Normal,QIcon_On )
If len(aImages) > 1
oSelectedImage := QPixmap( aImages[2] )
oImage:addPixmap( oSelectedImage,QIcon_Selected,QIcon_On )
Endif
oItem:setIcon( 0,oImage ) && Not supported by HBQT!
......
.....