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

Focus Problem on delegate using ActiveX

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.8.1
    • ActiveX Support
    • None
    • Windows seven

    Description

      Hi !

      I'm developping an ActiveX component using a QTableWidget with QComboBox delegates.
      The QTableWidget works perfectly when I use it in a QMainWindow directly but its behaviour changes once embedded in an ActiveX.
      When I select a choice in one of the QComboBox, the focus is not set on the widget and the event itemChanged is not called on QTableWidget when I select an other cell of the table. When I force the focus on the QComboBox by right clicking on it, the event is called when I select an other cell.

      I found a solution by connecting the signal currentIndexChanged(int) to a slot which emit the signals commitData() and closeEditor(). It solves the problem when using the mouse to select the choice but not when using the keyboard. The focus is lost whenever I press the down arrow.

      I made a simple project on VS2008 which reproduce this problem (see attachment).
      The top QTableWidget is in an ActiveX and has the problem. The bottom QTableWidget is in a frame and works as I want.

      Don't hesitate to ask me for more details.
      Thanks.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            klaarx Alexandre SARDA
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes