Results 1 to 2 of 2

Thread: Camera Overlay Behind Widgets

  1. #1
    Join Date
    Oct 2016
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Camera Overlay Behind Widgets

    Hii.... I am new to qt. I want to develop an application where i am using QCamera to capture image. But the thing is i want to add some frames like .png or .jpg to it(like an overlay type) and then capture the new image with frames. And i want to do this in C++ Gui and not in QML. I have googled, but could'nt get the desired result. Anyone can help.. Thanks in advance

    Check out the sample image
    Attached Images Attached Images

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Camera Overlay Behind Widgets

    So, the steps would be:
    1. Prepare a PNG image containing the surrounding frame with a transparent centre section
    2. Capture a frame from the camera into a QImage
    3. Use QPainter on the QImage to scale/draw the frame image over the camera frame
    4. Put the resulting QImage into a QLabel to display it on-screen
    5. Save the resulting QImage to a file to keep it if you want

Similar Threads

  1. Replies: 3
    Last Post: 18th July 2019, 11:25
  2. Overlay widgets
    By joylamb in forum Qt Programming
    Replies: 0
    Last Post: 9th September 2015, 16:38
  3. Replies: 0
    Last Post: 1st July 2013, 09:59
  4. Overlay
    By ToddAtWSU in forum Qt Programming
    Replies: 21
    Last Post: 24th May 2006, 14:15
  5. Drawing over content widgets? (overlay)
    By sertrem in forum Qt Programming
    Replies: 2
    Last Post: 17th January 2006, 23:18

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.