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

QDialog Setting the background is transparent and invalid

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.10.0
    • QPA
    • None
    • iOS/tvOS/watchOS

      ios: 10.3.3

      qt:   5.10.0

       

      class RemindDialog : public QDialog

      setAttribute(  Qt::WA_TranslucentBackground,true );

       

      //-------------------------------------------------------------------------

      int function xxx()

      {

           RemindDialog dialog();

           return dialog.exec();

      }

       
       //The background is black, not transparent.

      setAttribute(  Qt::WA_TranslucentBackground,true );

       

        1. remindwindows.cpp
          3 kB
        2. remindwindows.h
          0.6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            angelus li maoqing
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes