I added an update( ) call to the if-statement that says:
if( mouseEvent->button() == Qt::LeftButton )
{ // If left button, place mark on overlay to indicate position
// and store position in array at the current frame index
azElPoints.push_back( point );
printf( "x=%d, y=%d\n", point.xPos, point.yPos );
mpVideoPainter->drawPoint( point.xPos, point.yPos );
return true; }
if( mouseEvent->button() == Qt::LeftButton )
{ // If left button, place mark on overlay to indicate position
// and store position in array at the current frame index
azElPoints.push_back( point );
printf( "x=%d, y=%d\n", point.xPos, point.yPos );
mpVideoPainter->drawPoint( point.xPos, point.yPos );
return true; }
To copy to clipboard, switch view to plain text mode
But now my video repaints and then right after that the points redraw, but not over the video. The video disappears. Any ideas how to keep the video showing while also showing the newly clicked point? Thanks for your help!
Bookmarks