Hi, following on from this, can someone please tell me how to use itemAt()?

In my case, I want the context menu to appear only when a TreeWidgetItem from a particular TreeWidget is right clicked. Therefore I have set the context menu policy accordingly, but I don't know how to use itemAt to perform the check...

Quote Originally Posted by jpn
QListWidget provides you methods (QListWidget::itemAt()) which make it straightforward to check whether there is an item under the requested position or not.
You'll just need to construct and show the appropriate context menu based on the position.
Really appreciate your help on this