PDA

View Full Version : QListWidget issue



febil
18th February 2009, 11:39
In QListWidget control, if QListWidgetItem is entered as text, all items
gets the click signal.
But in my project i need customized items. So i set Qlabel as item. Thus i got appearance as I desired. But there I did not get the click signal for the last item in center and lower portion areas of QLabel. Click signal gets only on upper portion of the last item. Balance items gets signals as in desired manner. But last item only shifts from its behaviour. Why is it like that.

spirit
18th February 2009, 11:57
try to send event filter for that lable and redirect mouse events to QListWidget, this method is a little bit tricky. maybe there is sense to write your own delegate.

febil
18th February 2009, 12:54
Thanks for ur replay. Actually our problem solved by the following steps:
1. Set the QListWidget row height.
2. And Unset the label height.