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

Unconnected QCompleter crashes Python

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.9.0, 6.9.1

      PYSIDE-3141 describes code that crashes the Python interpreter, which is rather unwanted in the Python world. 
       
      The following code (which I could not test, and has been auto-generated using qtpy2cpp.py, should crash if you run it and hit any keyboard key ("space", "x", ...) inside the QComboBox:

      #include <QtWidgets/QApplication>
      #include <QtWidgets/QComboBox>
      #include <QtWidgets/QCompleter>
      
      int main() {
          QApplication app;
          auto *box = new QComboBox();
          auto *completer = new QCompleter({""});
          box->editTextChanged->connect(completer->complete);
          box->show();
          return app.exec();
      }
      

        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
            bers bers bers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes