I have a QMainWindow, and want to handle the \"clicked\" signal from a smaller widget (such as tableview) inside it.
Originally I connect the signal to a slot of this QM
Qt::MouseButtons is a QFlags type. You can't test it with == operator. Use & operator for testing:
==
&
if(QApplication::mouseButtons() & Qt:LeftButton) { ... }