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

[REG 5.4 -> 5.5] QProgressDialog is Shown Immediately After Allocation and Even Despite hide() Call.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important P2: Important
    • None
    • 5.5.0
    • QPA
    • None
    • Android

      App compiled versus API-22

      Steps to reproduce:

      1. Modify textedit example and add to its
      constructor allocation of QProgressDialog as below:

      this->progress_dialog_ =
      new (nothrow) QProgressDialog("Please, wait...",
      "Cancel", 0, PROGRESS_BAR_MAX_TIMESLOTS,
      this, // For parent relationship
      0);

      if (!this->progress_dialog_)

      { qDebug() << "TextEdit::alloc_wp_progress_dialog - failed to alloc QProgressDialog"; return 0; }

      // Don't show button "Cancel"
      progress->setCancelButton(0);
      progress->setWindowModality(Qt::ApplicationModal);
      progress->setMinimumDuration(0);
      progress->setObjectName("WPProgressDialog");

      // Even hide() is not helpful on Android
      progress->hide();

      2. Run the example;

      3. Observe that the progress dialog appears after some
      seconds, and it is positioned in the left upper corner of the display.

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

            esabraha Eskil Abrahamsen Blomfeldt
            coroberti Robert Iakobashvili
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes