Unsolved QFrame can't receive QMouseEvent
-
I use vesion qt5.12 ,i want to get the position of the mouse when the mouse is on the frame,
-
Since QFrame inherits QWidget mouseEvent should come. Can you show us what is the sample you tried ?
-
Hi
Also note that
"Mouse move events will occur only when a mouse button is pressed down, unless mouse tracking has been enabled with QWidget::setMouseTracking()."
http://doc.qt.io/qt-5/qmouseevent.html