Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Create square boxes on top of video stream for GUI

Create square boxes on top of video stream for GUI

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 515 Views
  • 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 Offline
    R Offline
    rtvideo
    wrote on last edited by
    #1

    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
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to the forums

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

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rtvideo
        wrote on last edited by
        #3

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

        mrjjM 1 Reply Last reply
        0
        • R rtvideo

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

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          @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
          0
          • R Offline
            R Offline
            rtvideo
            wrote on last edited by
            #5

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

            mrjjM 1 Reply Last reply
            0
            • R rtvideo

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

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @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
              1

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved