PDA

View Full Version : QGraphicsTextItem: How to show the text cursor?



breezeight
17th November 2009, 13:40
Hi I find some problem with the cursor. I have QGraphicsTextItem and an developing a virtual keyboard. I want to disable mouse click event on the QGraphicsTextItem.
Then get text cursor from the it and make the text cursor is visible.
But without a mouse click I cannot move the cursor.
have someone some idea? thanks

wysota
17th November 2009, 16:44
The item needs to have focus to be able to change the document. Alternatively you can intercept key events for your application and translate them to QTextCursor commands. But this won't make the text cursor visible.