Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
4.8.1
-
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.