Good day everyone. I've been reading this forum for a while before posting this one, and it is quite useful, hope to get hints on my problem
What I'm trying to do is to edit QGraphicsTextItem subclass containing rich text with a widget. My goal is to create kind of a tool bar to edit rich text in an item which floats above QGraphicsTextItem while it is in edit mode and closes immidiately after editing is finished. The problem is that when I create a Widget it takes focus from item and interrupts editing. How can I prevent QGraphicsTextItem from loosing focus or quitting edit mode caused by focus loss? Currently QWidget is created in focusInEvent and destroyed in focusOutEvent, maybe I can somehow keep editing mode of Item by checking if at least one (Widget or Item) has focus?
Bookmarks