[Interest] QGraphicsTextItem & editing
Igor Mironchik
igor.mironchik at gmail.com
Tue Feb 9 17:19:43 CET 2016
On 09.02.2016 19:03, Igor Mironchik wrote:
>
>
> 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?
Got it, my scene eat key press events... :) Thank you and sorry for the
flood.
More information about the Interest
mailing list