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. Scroll area for a QGraphicsWidget

Scroll area for a QGraphicsWidget

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.0k 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.
  • C Offline
    C Offline
    C-Rex
    wrote on last edited by
    #1

    Hello,

    I'm working with QGraphicsWidgets within a QGraphicsScene. I'm trying to embed multiple graphics widgets withing a parent graphics widget. I'm managing the widgets using a QGraphicsAnchorLayout.

    The problem I have is the total of the children graphics widgets are bigger than the viewable area of the parent graphics widget. The parent widget is appropriately sized within the scene, but I'm looking to add scrolling to its contents. I would just use a QScrollArea in the widget and wrap it in a QGraphicsProxy widget, but I as far as I know I can only use standard widgets within the QScrollArea not graphics widgets. Does this functionality exist within a graphics widget and how would I accomplish it?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      msue
      wrote on last edited by
      #2

      Maybe you should make the graphics view which displays your graphics scene scrollable instead.

      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