Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-8847

QGraphicsProxyWidget inputmethod sensitivity not updated for complex controls.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.7.0
    • 4.6.1
    • Widgets: GraphicsView
    • 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;
      
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            menard Alexis Menard (closed Nokia identity) (Inactive)
            manishsharma Manish Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes