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

QFileDialogPrivate crashes on QEvent::LanguageChange event

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • None
    • 5.7.0, 5.7.1
    • None
    • Manjaro KDE See export.txt

      QFileDialog crashes on QEvent::LanguageChange event. I've created simple example to reproduce this issue:

      void Dialog::setOpenFileNames()
      {
          QEvent e(QEvent::LanguageChange);
          qApp->sendEvent(qApp, &e);
          const QFileDialog::Options options = QFlag(fileDialogOptionsWidget->value());
          QString selectedFilter;
          QStringList files = QFileDialog::getOpenFileNames(
                                      this, tr("QFileDialog::getOpenFileNames()"),
                                      openFilesPath,
                                      tr("All Files (*);;Text Files (*.txt)"),
                                      &selectedFilter,
                                      options);
          if (files.count()) {
              openFilesPath = files[0];
              openFileNamesLabel->setText(QString("[%1]").arg(files.join(", ")));
          }
      }
      

      This happens only under KDE. If I change QT_QPA_PLATFORMTHEME to gtk3 all works fine.

        1. backtrace.txt
          4 kB
        2. export.txt
          2 kB
        3. main.cpp
          0.7 kB
        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
            trialuser02 Ilya Kotov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes