PDA

View Full Version : [MAC OSX] Mousetracking does not work in VideoWidget



Markus
1st October 2010, 23:23
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);
}


The problem is the mouseMoveEvent comes only when I press the mouse button.
Am I missing something?

Thanks Markus