views:

31

answers:

2

Hi..

i m trying to make Customized listview in QT for symbian OS. i am facing some problem, i am able to draw everything like icon,text etc.. where ever i wish but the problem is, it is not getting selected by default.. i hope u got it.

to do selection i need to draw the rectangle manually.. it could be a problem if them get changed or some other stuff took place..

please tell me how to get the default selection.. Thanks

A: 

You probably want to call the setFocus() method which your listview inherits from QWidget.

ctd
Hey i am sorry.. i found answer.. its we need to call the base call paint once the inherited paint function gets over,,i just did it,,. i got default selection rect.
Shadow
A: 

We need to call the base class paint, once the overridden function gets over, we need to call the base class paint.

Shadow