Ok, I have a QGraphicsScene full of QGraphicItem's.
What I hope to achieve is to somehow "assign" a QString to each of the QGraphicItem's when they are created.
Ex:
create QGraphicItem
create QGraphicItem
assign QString "this data" to it
To copy to clipboard, switch view to plain text mode
By doing that, when a user clicks on the respective QGraphicItem, I can call a function passing as an argument the previously assigned QString.
when I click on QGraphicItem
when I click on QGraphicItem
call useData(assigned QString)
To copy to clipboard, switch view to plain text mode
Makes sense? Hope so.
Bookmarks