Qt 6.11 is out! See what's new in the release
blog
Select QGraphicsObject when QTextEdit got clicked
-
I have a
QGraphicsObjectwith aQTextEditon top of it thoughtQGraphicsProxyWidget,
I want theQGraphicsObjectget selected when clicked on theQTextEdit. -
I have a
QGraphicsObjectwith aQTextEditon top of it thoughtQGraphicsProxyWidget,
I want theQGraphicsObjectget selected when clicked on theQTextEdit.Why dont you connect them?!
If your
QTextEdithasFocus(https://doc.qt.io/qt-5/qwidget.html#focus-prop), select yourQGraphicsObject(https://doc.qt.io/qt-5/qgraphicsitem.html#setSelected)
(SetQGraphicsItem::ItemIsSelectableflag first) -
Thanks, I just needed an event filter to detect focus changes.