[Interest] QGraphicsTextItem & editing

Igor Mironchik igor.mironchik at gmail.com
Tue Feb 9 17:03:33 CET 2016



On 09.02.2016 18:26, Igor Mironchik wrote:
> Hi,
>
> I create QGraphicsTextItem and setTextInteractionFlags( 
> Qt::TextEditorInteraction ), but text is not editable, I don't see 
> cursor, etc...
>
> How to start editing in QGraphicsTextItem?

I got one point - setTextInteractionFlags( Qt::TextEditorInteraction ) 
should be invoked after constructing of QGraphicsTextItem. Now Item has 
flashing cursor, but no text input focus, i.e. keys do nothing.

setFocus() doesn't help...

What can be the problem?



More information about the Interest mailing list