to select an item, you need to click on the item area which in not occupied by the widget.
If your custom widget occupies the complete item area, then you cannot select the item, you need to capture the mouse click event and pass it on to the item.
to select an item, you need to click on the item area which in not occupied by the widget.
If your custom widget occupies the complete item area, then you cannot select the item, you need to capture the mouse click event and pass it on to the item.
How to get to the item from the widget perspective, widget has not idea where it lives
in your custom widget you need ignore the mouse click so that it is forwaded to the cusom widget's parent
Qt Code:
{ e->ignore(); }To copy to clipboard, switch view to plain text mode
Bookmarks