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. Selecting a QGraphicsItem in a QGraphicsScene in a QGraphicsView in QT Designer
Forum Updated to NodeBB v4.3 + New Features

Selecting a QGraphicsItem in a QGraphicsScene in a QGraphicsView in QT Designer

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 3.3k 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,

    I have a Designer plugin inherited from QGraphicsView.

    In the QT Designer form editor, is it possible to select a QGraphicsItem in a QGraphicsScene in a QGraphicsView in so you can move it around in the designer?

    I know it is possible to do this in run time, but in the Designer, it always selects the QGraphicsView, not the QGraphicsItem within the QGraphicsScene within the QGraphicsView. i.e. you can only movie the QGraphicsView around not the QGraphicsItem child item.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tony
      wrote on last edited by
      #2

      AFAIK, you cannot place QGraphicsItem objects with Qt Designer. There aren't even in the palette :)

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

        You can wrap a QGraphicsItem around a QGraphicsView which can then be put in a Qt Designer plugin.

        I know that works, but my question is how to select the QGraphicsItem which is in the QGraphicsView in the QT designer. I had a look at the QT designer source code and it seems it eats the mousemovevent and some others so the plugin doesn't receive them in the designer. They do receive them as normal in runtime though.

        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