[Development] Qt 5.10 : arrow keys not working in QGraphicsProxyWidget
wim delvaux
wim.delvaux at adaptiveplanet.com
Mon Jan 15 02:14:56 CET 2018
Hi all,
To cut it short (too short ?) I have QLineEdit and QListWidget widgets
embedded in a
QGraphicsScene.
Interacting works partially : Mouse clicking and mouse dragging works
(selection of QLineEdit/item in QListWidget, using scrollbars)
What does not work (anywhere) is using the arrow keys. So when a QLineEdit
it selected (I can see the highlight of the LE plus I can type in chars) I
cannot move back to previous chars using the left arrow key. Also in the
QListWidget I cannot scroll inside the content of the LW using the up/down
arrow keys.
AFAIK I have not set any special options when adding the widgets. I use
the QGraphicsScene::addWidget method to add the widget (and not the new
QGraphicsProxyWidget, QGraphicsProxyWidget::setWidget and then the
QGraphicsScene::addItem method as this seems to break embedding completely
such that even mouse interaction is erroneous)
What could be wrong ?
Thx
W
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20180115/cc515bea/attachment.html>
More information about the Development
mailing list