[Qt-interest] setContentsMargins doesnt seem to work on QListView
Parta
lists4pghanghas at gmail.com
Thu Jun 10 11:43:20 CEST 2010
Hi
I am trying to set content margin on QListView and it doesnt seem to work.
I used the followin API
setContentsMargins()
I want to draw some of my own content along with things drawn by QListView.
I need some space for that.
QListView seems to use QStyleOptionViewItem for rect in which it draws
and I dont see any way to modify that.
I dont want to do all the drawing myself, I just want to draw
somethings of my own and then call QListView's
paintEvent for rest of the drawing.
If someone faced a similar issue or has some ideas regarding this, it
will be very helpful.
--
Thanks,
Parta
More information about the Qt-interest-old
mailing list