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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.2.0
    • 5.1.0
    • GUI: Window management
    • None
    • Windows 7 Based on Qt 5.1.0 (32 bit)
      Linux
    • 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

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

        Activity

          People

            kleint Friedemann Kleint
            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