Results 1 to 8 of 8

Thread: Grab a frame from video when a push button is pressed!!!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2014
    Posts
    9
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Question How to update Qlabel with new Image!!!

    Hi everyone!!!

    I have a small issue in displaying a new image in Qlabel. I have a video running in Qlabel when a pushbutton is pressed, and I am grabing a frame from the video and updating the same Qlabel when another pushbutton is pressed. My problem here is when I push the second pushbutton, Qlabel is loaded with old frame, but when I push the second push button again, I am getting my frame in Qlabel.


    Can someone suggest me what is an issue?


    Thanks in advance!!!

    jakr1387

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: How to update Qlabel with new Image!!!

    The issue is you are setting an incorrect pixmap on the label.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Aug 2014
    Posts
    9
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Question Re: How to update Qlabel with new Image!!!

    Hi wysota,

    I could not find anything. I am pointing to the correct label, maybe I have something missing. Plz find the attached code


    thanks in advance!!
    jakr1387
    Attached Files Attached Files

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: How to update Qlabel with new Image!!!

    What does cap.read() return? What does cap.retrieve() return?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. do something while a button is pressed
    By saman_artorious in forum Qt Programming
    Replies: 11
    Last Post: 12th November 2013, 15:39
  2. Replies: 6
    Last Post: 4th October 2010, 03:19
  3. Video Parsing - Frame by Frame
    By ctote in forum Qt Programming
    Replies: 3
    Last Post: 15th February 2010, 18:30
  4. To draw a circle on a frame when the key is pressed
    By soumya in forum Qt Programming
    Replies: 18
    Last Post: 9th February 2010, 10:21
  5. grab images from Phonon video
    By Kraut~salat in forum Qt Programming
    Replies: 3
    Last Post: 19th January 2009, 09:53

Tags for this Thread

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.