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

QWidget::setWindowOpacity doesn't work when called before show()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.2.0
    • Component/s: GUI: Window management
    • Labels:
      None
    • Environment:
      Windows 7 Based on Qt 5.1.0 (32 bit)
      Linux
    • Commits:
      4ef8144dd6a7a4e493c901c3d1d4bbb7735c161c

      Description

      I made simple Application:
      -Added in designer simple pushbutton
      -after click i create Qdialog
      -I setWindowOpacity in Main window and in QDialog
      -MainWindow works, QDialog does not

      on pushbutton click slot:
      QDialog *qd = new QDialog();
      qd->setFixedSize(this->width(),this->height());
      this->setWindowOpacity(0.5); //this work
      qd->setWindowOpacity(0.5); // this is not
      qd->show();

        Attachments

        1. qtbug33078.zip
          1 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            kleint Friedemann Kleint
            Reporter:
            kajojeq Karol Zdancewicz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes