Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QFrame can't receive QMouseEvent
chuansong last edited by
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 ?
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()."