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

No interaction effects after opening popup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • None
    • 5.10
    • Quick: Controls 2
    • None
    • macOS Sierra
      2016 MacBook Pro

    Description

      After opening a popup in the following example, all interaction effects (press, hover) stop working. I'm still able to click on the buttons (the clicked() signal is emitted).

      import QtQuick 2.7
      import QtQuick.Controls 2.2
      
      ApplicationWindow {
          id: window
          width: 800
          height: 640
          visible: true
      
          Shortcut {
              sequence: "Ctrl+Q"
              onActivated: Qt.quit()
          }
      
          Button {
              text: qsTr("Button")
              onClicked: print("button clicked!")
          }
      
          TextField {
              id: folderField
              selectByMouse: true
              text: "TextField"
              onEditingFinished: print("Finished editing a TextField")
              anchors.right: parent.right
          }
      
          ComboBox {
              id: dprComboBox
              model: [1, 2, 3, 4]
              currentIndex: 1
              anchors.right: parent.right
              anchors.bottom: parent.bottom
          }
      
          Button {
              id: button
              text: "Button with Menu"
              anchors.bottom: parent.bottom
              onClicked: print("Clicked a button with a menu")
              onPressAndHold: menu.open()
              Menu {
                  id: menu
                  MenuItem {
                      text: "Current"
                  }
                  MenuItem {
                      text: "All"
                  }
              }
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              laknoll Lars Knoll
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes