How can I detect whether a double click on a QWidget (QStatusBar, in my case) occured while a modifier key was held down?
I can overload void QWidget::mouseDoubleClickEvent ( QMouseEvent * event ) to get the double click, but how can I sure whether the widget receives the key events when it might not have the focus?
I found the answer:
QMouseEventis derived fromQInputEventand that has a method calledmodifiers():From the Qt documentation: