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

Unexpected focus and editing behaviour in QTableView

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.6.2, 5.12.1
    • Widgets: Itemviews
    • None
    • Linux/X11

      AllEditTriggers is set for a QTableView. When editing an element inside it, changing the focus to another widget and then trying to edit the same element again, it takes roughly a second until editing is possible. When clicking on an empty area inside the same QTableView and then trying to edit the same element again, editing is only possible by double clicking or first editing another element. A minimal example for this behaviour is included below.

      In one of our applications we subclassed QAbstractItemModel to interact with parameters in a real time process. In this class the first behaviour I described already leads to editing only being possible by double clicking or first editing another element. Since the user has to enter the values via  a (resistive) touchscreen, this can lead to very irritating behaviour.

        1. main.cpp
          0.8 kB
        2. qt.pro
          0.3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            pweyer Philipp Weyer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes