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. Wrapping a QGraphicsItem/QGraphicScene in a QWidget for use in QT Designer as a plugin.

Wrapping a QGraphicsItem/QGraphicScene in a QWidget for use in QT Designer as a plugin.

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

    Hi QT Gurus,

    Is it possible to wrap a QGraphicsItem/QGraphicScene as a QWidget for use in QT Designer as a plugin with mouse events.

    It is easy to add a QWidget to to a QGraphicScene but is possible to add a QGraphicScene to a QWidget.

    The purpose being to implement some basic drawing tools in the Designer.

    I know it is possible to use QPainter in a QWidget to to this but I would like to use QGraphicsItem/QGraphicScene.

    Is this possible?

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zgulser
      wrote on last edited by
      #2

      As far as I know, it's not possible to do such a thing yet.

      1 Reply Last reply
      0
      • ? This user is from outside of this forum
        ? This user is from outside of this forum
        Guest
        wrote on last edited by
        #3

        not sure if I understood you right, but isn't QGraphicsView also a widget?

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jorj
          wrote on last edited by
          #4

          QGraphicsView sounds like what you want...

          1 Reply Last reply
          0
          • C Offline
            C Offline
            ctn123
            wrote on last edited by
            #5

            Yep QGraphicsView worked great.

            Thanks guys.

            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