PDA

View Full Version : tree widget item's widget don't respond to any event.



quantity
11th April 2011, 05:30
Hi guys,

I have a treewidget, whose items have customized widgets using QTreeWidget::setItemWidget. Now I would like to capture each item's widget mouse events and handle correspondingly. So I subclass the widget from QWidget, reimplement event() method. But event() method never invoked, which is very strange.

I've no idea what's wrong with my approach. Should anyone help me out of this problem? Thanks very much!

Added after 8 minutes:

It's my carelessness of coding, not a problem. I'm sorry for that!
Can anyone tell me how to remove this thread?