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

infinite loop in the framework

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.15.2
    • Widgets: Main Window
    • None
    • Linux/Wayland

    Description

      hi

      i'm noob in cpp and qt but, if i use the folowing basic code in my mainwindow cpp

      QtVsPlayer::QtVsPlayer(QWidget *parent)
          : QMainWindow(parent)
          , ui(new Ui::QtVsPlayer)
      {
          ui->setupUi(this);
         
          QStringList args = QApplication::arguments();
          ParseArgs(args);
      }

      i got an infinite loop, also by usingĀ QCoreApplication

      if i put the folowing code in main.cpp

      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          QtVsPlayer w;
          a.installEventFilter(&w);
          w.show();
          QStringList list;
          for (int a = 0; a < argc; ++a) {
              list << QString::fromLocal8Bit(argv[a]);
          }
          w.ParseArgs(list);
          return a.exec();
      }
      

      no more infinite loop

      i`m working under mageia 8 64 bit with Gnome

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            surfzoid Eric PETIT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes