airglide
28th July 2012, 14:10
Hello everyone,
I wanted to create a program for taking notes which is based on QGraphicsTextItems, I wanted to have behavior that is different from the QtTextItem which is added to a QGraphicsScene. The problem is, that for this behavior I've to change the TextItems (editable / not editable) when somewhere on the scene a click happens . The Problem is, that I can't call this functions because all the stuff which is added on the scene are just QGraphicsItems and they don't have this behavior (editable / non editable etc.).
I tried to make a list with all the QGraphicsTextItems so i could reset all of them. I couldn't find a better solution... is there another way of doing this? I thought my way isn't really object-oriented...
the program works fine but I think it's a bit inefficient ;)
Thank you for your suggestions & help
airglide
I wanted to create a program for taking notes which is based on QGraphicsTextItems, I wanted to have behavior that is different from the QtTextItem which is added to a QGraphicsScene. The problem is, that for this behavior I've to change the TextItems (editable / not editable) when somewhere on the scene a click happens . The Problem is, that I can't call this functions because all the stuff which is added on the scene are just QGraphicsItems and they don't have this behavior (editable / non editable etc.).
I tried to make a list with all the QGraphicsTextItems so i could reset all of them. I couldn't find a better solution... is there another way of doing this? I thought my way isn't really object-oriented...
the program works fine but I think it's a bit inefficient ;)
Thank you for your suggestions & help
airglide