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

Popups don't close on touch events without ApplicationWindow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.7.1
    • 5.7.0
    • Quick: Controls 2
    • None
    • QNX Neutrino RTOS 6.6
    • 14dd934c3203b614e43be9fa5b17761d43092351

    Description

      Everything works fine with click events, but when I start using a touch instead of a mouse, everything continues to receive events (I can press any button on screen), but popups do not close.

      Popups close with touches if ApplicationWindow is used as root item.

      main.qml:

      Item { //ApplicationWindow
          visible: true
          width: 768
          height: 1024
          Button {
              anchors.centerIn: parent
              onPressed: {
                  popup.open()
              }
              Popup {
                  id: popup
                  closePolicy: Popup.CloseOnPressOutsideParent // doesn't cloes with tauches
      
                  contentItem: Slider {
                      orientation: Qt.Vertical
                  }
              }
          }
      }
      

      main.cpp:

          QGuiApplication app(argc, argv);
          QQuickView view;
          view.setSource(QUrl(QLatin1String("qrc:/main.qml")));
          view.show();
          return app.exec();
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            zak Zakhar Bondia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: