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

QAbstractItemView::clicked emitted only once for doubleclick

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.2
    • Widgets: Itemviews
    • None
    • Windows

    Description

      Looks like signals received after doubleclick from QTableView changed in 5.15.2, same problem in latest (6.6.1). clicked signal is emitted only once, while expected twice.

      5.12.4
      pressed
      clicked
      doubleClicked
      activated
      clicked

      5.15.2 & 6.6.1
      pressed
      clicked
      doubleClicked
      activated

       

      Here is my use case:

      I have a model which describes some objects. Each object can be in on of three states. When state cell is clicked - I want to change current state to next one, like in circular queue. To switch rapidly from state 1 to state 3 it must be possible just to use doubleclick. That is the place where current bug appear. 

      Obvious workaround here would be just to connect both signals (clicked and doubleClicked) to handler slot.
      Unfortunately, in that case handler slot calls will be not evenly distributed (for even distribution of clicks). That is the problem because on state change I am providing immediate feedback which is quite visible and uneven slot calls will be noticeable.

       

      Attachments

        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
            jdfa Andrii -
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes