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

Unexpected focus and editing behaviour in QTableView

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        1. main.cpp
          0.8 kB
        2. qt.pro
          0.3 kB

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes