[SOLVED] How to remove Gray color background on selected text in QGraphicsTextItem after deselection.
General and Desktop
3
Posts
2
Posters
1.8k
Views
1
Watching
-
Whenever we select some part of text in QGraphcisTextItem programs create default blue color background over that text and if we deselect QGraphcisTextItem , then program leaves gray color background with white color text.
can anybody suggest how to remove this gray color background ?????
-
I am not entirely sure based on your description, but I suspect that the text stays selected while the GraphicsItem loses focus.
Try reimplementing focusOut of the QGraphicsTextItem, and remove the text selection manually.