Results 1 to 20 of 22

Thread: Overlay

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Cool Re: Overlay

    I added an update( ) call to the if-statement that says:

    Qt Code:
    1. if( mouseEvent->button() == Qt::LeftButton )
    2. { // If left button, place mark on overlay to indicate position
    3. // and store position in array at the current frame index
    4. azElPoints.push_back( point );
    5. printf( "x=%d, y=%d\n", point.xPos, point.yPos );
    6. mpVideoPainter->drawPoint( point.xPos, point.yPos );
    7. 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!
    Last edited by ToddAtWSU; 22nd May 2006 at 14:06.

Similar Threads

  1. QtWidget in Overlay Planes on Windows OpenGL
    By IVTdeveloper in forum Qt Programming
    Replies: 2
    Last Post: 20th August 2008, 11:00
  2. QGLWidget with overlay
    By pandora-qt in forum Qt Programming
    Replies: 0
    Last Post: 29th February 2008, 10:44
  3. QScrollView Overlay
    By EricTheFruitbat in forum Qt Programming
    Replies: 5
    Last Post: 27th December 2006, 09:29
  4. Adding Rectangular overlay on graphics view
    By forrestfsu in forum Qt Programming
    Replies: 10
    Last Post: 21st November 2006, 19:42
  5. Pixmap Overlay
    By ToddAtWSU in forum Qt Programming
    Replies: 5
    Last Post: 22nd June 2006, 20:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.