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. How Efficient is it to use QWidgets in QGraphicsScene via the QGraphicsProxyWidget Functionality?

How Efficient is it to use QWidgets in QGraphicsScene via the QGraphicsProxyWidget Functionality?

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

    From what I understand QGraphicsScene is designed to be able to draw 1000's of items on a 2D canvas that can be animated and interacted with.

    The way in which you can incorporate a say a "panel" of QWidgets, which has a layout e.g box, into the QGraphicsScene is via the QGraphicsProxyWidget functionality.

    How efficient is this method? This is a lot of extra overhead by the fact you are adding QWidgets into the scene in this way?

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Yes, It is. You need to use adding the QWidgets to GraphicsScene only in unavoidable cases.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      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