Hey dennis81,
thanks for ur reply
now i have solced my problem and get a new one
when i click on my scene then i get a debug output: "MainScene: Pressed". thats all right, but when i click now on a roundrectitem in the scene, then i get this output:
"RoundRectItem: Pressed
MainScene: Pressed"
but i dont want that the scene gets an MousePressEvent, because i just want to "press" the RoundRectItem.
How can i made this? do i need an eventFilter in the Scene?
And another question i have:
Is it better, when i make my own SceneItems like RoundRectitem, to inherit from QGraphicsItem or QGraphicsObject?
I ask, because when i inherit from QGraphicsItem and QObject and want to Animate like move in x-direction, then i need to create a new Q_PROPERTY. But when i inherit from QGraphicsObejct, then i have more defined Propertys, which i can animate.
Thanks for helping
with best regards
nudels







Reply With Quote


Bookmarks