Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Create square boxes on top of video stream for GUI

    General and Desktop
    2
    6
    202
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rtvideo last edited by

      Hello, I am trying to recreate the GUI in the attached picture and was wondering how I would go about this? That is a live video stream with two boxes on the screen at all times at a fixed size. I have a viewer opening up already and displaying the video, I just need to get the two boxes at the fixed size overlapping the stream. Any help would be appreciated thank you!

      Capture.PNG

      1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by

        Hi and welcome to the forums

        How do you currently display the stream?
        (i mean what widget did you use)

        1 Reply Last reply Reply Quote 0
        • R
          rtvideo last edited by

          Thank you! And I am currently using the functionality of the sample "Camera" project in the examples for QT.

          mrjj 1 Reply Last reply Reply Quote 0
          • mrjj
            mrjj Lifetime Qt Champion @rtvideo last edited by mrjj

            @rtvideo
            QWidgets or the QML one ?

            If Widgets, there is
            https://forum.qt.io/topic/91952/painting-over-a-qvideowidget

            I used that overlay class form SO and it worked nicely.

            1 Reply Last reply Reply Quote 0
            • R
              rtvideo last edited by

              QWidgets, I'll take a look and give it a try!

              mrjj 1 Reply Last reply Reply Quote 0
              • mrjj
                mrjj Lifetime Qt Champion @rtvideo last edited by

                @rtvideo
                I hope the it works for you too. The overlay auto adjust
                to parent size and you can just use its paintEvent to draw the rects.

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post