Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.6.1
-
None
-
windows / symbian / linux
-
69efa1c869694666c66375179b43e2569cf2772b
Description
wrong values, because focused item which happen to be proxywidget is not updated. If proxy contains only one control then it will work, but problem comes when QGraphicsProxyWidget contains a complex Qwidget control for example editor inside another QWidget.
I tried below fix and it started working, this function is called whenever a QWidget tries to get focus this is called by the QGraphicsProxyWidget internally. Since there is no way to know inside QGraphicsProxyWidget that the QWidget is focused or not had to put a fix in below function. I am sure there could be a better way to fix it.
Bar.java
--- src/gui/kernel/qwidget_org.cpp Tue Mar 9 13:02:08 2010 +++ src/gui/kernel/qwidget.cpp Mon Mar 8 06:40:59 2010 @@ -6135,6 +6135,7 @@ QApplication::sendEvent(that->style(), &event); } if (!isHidden()) { + topData->proxyWidget->d_func()->updateProxyInputMethodAcceptanceFromWidget(); // Send event to self QFocusEvent event(QEvent::FocusIn, reason); QPointer<QWidget> that = f;