Dear all,
I want to track the mouse in a video widget and have sub-classed VideoWidget:
VideoWidgetPatch
::VideoWidgetPatch( QWidget * parent
) : Phonon
::VideoWidget(parent
){
setMouseTracking(true);
}
void VideoWidgetPatch
::mouseMoveEvent(QMouseEvent * event
) {
qDebug() << event->type() << hasMouseTracking();
Phonon::VideoWidget::mouseMoveEvent(event);
}
VideoWidgetPatch::VideoWidgetPatch( QWidget * parent) : Phonon::VideoWidget(parent)
{
setMouseTracking(true);
}
void VideoWidgetPatch::mouseMoveEvent(QMouseEvent * event)
{
qDebug() << event->type() << hasMouseTracking();
Phonon::VideoWidget::mouseMoveEvent(event);
}
To copy to clipboard, switch view to plain text mode
The problem is the mouseMoveEvent comes only when I press the mouse button.
Am I missing something?
Thanks Markus
Bookmarks