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. [SOLVED] Subclass QGraphicsPixmapItem to work with signals and slots
Qt 6.11 is out! See what's new in the release blog

[SOLVED] Subclass QGraphicsPixmapItem to work with signals and slots

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

    Greetings.

    I want to create a subclass of QGraphicsPixmapItem that can work with signals and slots. I wonder if a class GraphicsPixmapItem which is subclass of QGraphicsObject (which I would highly desirable) exists in Qt?... is there such a class or one like it? or Should I create my custom subclass inheriting from QGraphicsPixmap and QObject?

    Thanks in advance for any response.

    Isaac Pérez
    Programming is understanding.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      No, I don't think such an item aready exists. You can create your own however by inheriting from both QObject and QGraphicsPixmapItem in that order.

      1 Reply Last reply
      0
      • I Offline
        I Offline
        isaacEnrique
        wrote on last edited by
        #3

        Thanks... then I will.

        Isaac Pérez
        Programming is understanding.

        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