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 inside a QGraphicsView
Qt 6.11 is out! See what's new in the release blog

QGraphicsView inside a QGraphicsView

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.9k Views 1 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.
  • M Offline
    M Offline
    moose
    wrote on last edited by
    #1

    Can a QGraphicsView be put inside another QGraphicsView? If so, what are the concerns with events? Thanks.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DerManu
      wrote on last edited by
      #2

      Yes, it's possible, see http://qt-project.org/doc/qt-4.8/graphicsview.html

      bq. You can even embed a new QGraphicsView into your scene to provide complex nested scenes.

      This probably works via QGraphicsProxyWidget. About event propagation: This should theoretically work normally, however, If I remeber correctly, there have been some issues in this forum which reported it didn't actually work that smoothly. Just try whether what you want to do works.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        moose
        wrote on last edited by
        #3

        Missed that part. Thanks for the help. I'll try it.

        1 Reply Last reply
        0

        • Login

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