Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Ansatz zur Eventbehandlung von QGraphicsItemGroup

    German
    2
    2
    1076
    Loading More Posts
    • 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.
    • R
      rennreh last edited by

      Hallo,

      Ich habe einige QgraphicsItems wie Rects, Lines etc erstellt und zu einer QGrapficsItemGroup zusammengefasst. Diese füge ich der QGrafgicsScene zu, welche zum QgraficView gehört.
      Nun komme ich nicht weiter, zumindest habe ich keinen Ansatz. Ich möchte nun zu einer speziellen QGrapficsItemGroup (ich hab da ja einige) auf bestimmte Events reagieren. Z.b. hover, right/left click und solche sachen.
      Hat dazu jemand einen Ansatz wie man das prinzipiell macht oder gar ein Beispiel.

      Mit besten Grüßen

      1 Reply Last reply Reply Quote 0
      • M
        messi last edited by

        Hast du dir folgendes Beispiel schon angeschaut:
        http://qt-project.org/doc/qt-4.8/graphicsview-diagramscene.html

        1 Reply Last reply Reply Quote 0
        • First post
          Last post