0

I am trying to make a customized listview in QT for the Symbian OS. However, I am facing some problems: I am able to draw everything like icons, text etc.. wherever I wish.

However, it is not getting selected by default.

To do selection, I need to draw the rectangle manually. It could be a problem if they got changed or some other stuff took place, however.

How would I get the default selection?

JavaAndCSharp
  • 1,507
  • 3
  • 23
  • 47
Naruto
  • 9,476
  • 37
  • 118
  • 201

2 Answers2

0

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

ctd
  • 1,693
  • 12
  • 27
  • 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. – Naruto Feb 19 '10 at 09:43
0

I need to call the base class paint. Once the overridden function gets over, I need to call the base class paint.

JavaAndCSharp
  • 1,507
  • 3
  • 23
  • 47
Naruto
  • 9,476
  • 37
  • 118
  • 201