You can try using QWidget::customContextMenuRequested( const QPoint& ) and detect what item( if any ) is at that position.

This is always for the right mouse button.

Regards