I can't see in your code a connect statement that connects to the mousePressEvent() slot.
Never mind I see now what you meant.
I can't see in your code a connect statement that connects to the mousePressEvent() slot.
Never mind I see now what you meant.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
The mousePressEvent() is "natively" connected to the mouse :-) through the QLabel class, so no need to connect it anymore.
I am not sure what do you mean... after all.
I think you might (if I am getting right what I see in your code and what you say) be confusing the mousePressEvent() *event handler* and the mousePressEvent() slot you have overridden in your QLabel subclass!
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks