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

WASM: QWasmWindow::injectMouseReleased is calling window()->close() inappropriately

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.4.0 Beta4
    • 5.13.0 Alpha 1
    • QPA
    • None
    • WebAssembly

    Description

      A QComboBox with a popup will crash when the popup is dismissed with the mouse (clicking on arrow). This happens because it believes there is a close button there as if there were a (hidden) system menu. The situation is reproduced if QWasmWindow::injectMouseReleased calls window()->close() when the popup window of a QComboBox is dismissed.

      #include <QApplication>
      #include <QComboBox>
      
      int
      main(int argc,char *argv[])
      {
              QApplication a( argc, argv );
      
              QComboBox w;
              w.addItem("1");
              w.addItem("2");
              w.addItem("3");
              w.addItem("4");
              w.setEditable(true);
              w.show();
      
              return a.exec();
      }
      

      Attachments

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

        Activity

          People

            lpotter Lorn Potter
            jogomu John Muehlhausen
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes