Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, November 2006
QGraphicsView selectable, movable and focusable


Message 1 in thread

Hey,

Is there a way to make a QGraphicsTextItem selectable, movable and focusable 
like this: 

Single Click + MouseMove = item moves

Double Click = Item gets Focus as long as an other item is selected or nothing 
is selected

?

The problem I'm facing now is, that the QGraphicsScene focuses on the item 
with a mousePressEvent. This breaks regulare move operations.

Maybe someone of you guys did already something like this and has a few hints. 
Thanks.

--
 [ signature omitted ]