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

ContextMenu opened on TextField sometimes closes immediately

XMLWordPrintable

    • dac8529dc (dev), dba0dd260 (6.9)

      Found in this patch:

      https://codereview.qt-project.org/c/qt/qtdeclarative/+/612253/44#message-575a7d2687752c30fb67a73045acb460466cfeb8

      There's an issue (on my Ubuntu machine, at least) where right clicking on a TextField opens the menu, but it then immediately closes because the first menu item is triggered
      [...]
      So it's being called as a result of a QTimerEvent. The timer is animateTimer, which is started by QQuickMenuPrivate::handleReleaseWithoutGrab calling menuItem->animateClick().

      Reproduces with the Basic style, but not e.g. Fusion.

        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
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: