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

QProgressDialog does not properly adopt a new progress bar in setBar()

    XMLWordPrintable

Details

    Description

      The following test fails:

          QPointer<QProgressBar> bar = new QProgressBar;
          QVERIFY(!bar->parent());
          {
              QProgressDialog dlg;
      
              QVERIFY(!dlg.isAncestorOf(bar));
              dlg.setBar(bar);
              QVERIFY(dlg.isAncestorOf(bar)); // FAIL
          }
      

      The progress bar is consequently shown as a window instead of embedded in the progress dialog. This is not what the docs say should happen.

      Attachments

        For Gerrit Dashboard: QTBUG-40503
        # Subject Branch Project Status CR V

        Activity

          People

            mmutz Marc Mutz
            mmutz Marc Mutz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes