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. Qgraphicsview scene.

Qgraphicsview scene.

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 4 Posters 772 Views 2 Watching
  • 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.
  • G Offline
    G Offline
    Girin
    wrote on last edited by
    #1

    Can two scenes by overlapped one above another in single graphicsview widget?

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      A QGraphicsView can only have exactly one QGraphicsScene. What are you trying to achieve?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2
      • G Offline
        G Offline
        Girin
        wrote on last edited by Girin
        #3

        doubt.png

        Thank you for thr reply. I want to display the output of 2 camera i.e 2 images/video in one graphicsview window (in scene1 and scene2) as shown in the picture above. Is there any way to do that?

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          As I already said there can't be two scenes in one view but you can create two views.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          1
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi,

            Why not have both camera in the same scene ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            G 1 Reply Last reply
            2
            • SGaistS SGaist

              Hi,

              Why not have both camera in the same scene ?

              G Offline
              G Offline
              Girin
              wrote on last edited by
              #6

              @SGaist Sorry I am new to Qt. Can you please explain how to do that.

              mrjjM 1 Reply Last reply
              0
              • G Girin

                @SGaist Sorry I am new to Qt. Can you please explain how to do that.

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

                @Girin
                Hi
                If you look at the
                https://doc.qt.io/qt-5/qtwidgets-graphicsview-chip-example.html
                example.

                It has 4 views into same scene which sounds like you want.

                G 1 Reply Last reply
                2
                • mrjjM mrjj

                  @Girin
                  Hi
                  If you look at the
                  https://doc.qt.io/qt-5/qtwidgets-graphicsview-chip-example.html
                  example.

                  It has 4 views into same scene which sounds like you want.

                  G Offline
                  G Offline
                  Girin
                  wrote on last edited by
                  #8

                  @mrjj Thank You. I got it.

                  mrjjM 1 Reply Last reply
                  1
                  • G Girin

                    @mrjj Thank You. I got it.

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

                    @Girin
                    Super, please mark as solved then :)

                    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