Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QActiveX and QComboBox delegate
Forum Updated to NodeBB v4.3 + New Features

QActiveX and QComboBox delegate

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KlaarX
    wrote on last edited by
    #1

    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'd like to know if it is a known bug of Qt or if I missed something and if there is a good solution to solve it.
    I made a simple project on VS2008 which reproduce this problem.
    [url]https://rapidshare.com/files/551753355/UITest_ActiveX.zip[/url]
    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 test it and ask me more details.
    Thanks.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      KlaarX
      wrote on last edited by
      #2

      nobody ? should I report it as a bug ?

      1 Reply Last reply
      0
      • K Offline
        K Offline
        KlaarX
        wrote on last edited by
        #3

        please I still need help !
        thanks

        1 Reply Last reply
        0
        • K Offline
          K Offline
          KlaarX
          wrote on last edited by
          #4

          I reported it as a bug
          https://bugreports.qt-project.org/browse/QTBUG-26897

          1 Reply Last reply
          0
          • K Offline
            K Offline
            koahnig
            wrote on last edited by
            #5

            welcome to devnet

            I had seen your post before, but I have no experience with ActiveX. Therefore, I am certainly of no help. It is good to have the issue reported on JIRA. It will not get lost here.

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            0
            • K Offline
              K Offline
              KlaarX
              wrote on last edited by
              #6

              Thanks. I hope I'll get a fix or a solution from the developers in the future.
              I'll let you know here ;)

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved