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

Qcolor has no effect on dockwidget

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P2: Important P2: Important
    • None
    • 6.6.1
    • None
    • Linux/Wayland

      I use this code to change the transparency of a dockwiget.
      I had no problem with qt5 until qt6.5.
      Since a qt6.6  update , Qcolor no longer has any effect.

       

         // draw background
                    QColor backgroundColor = palette.color( QPalette::Window );
                     backgroundColor.setAlphaF( StyleConfigData::SidebarOpacity()/100.0 );
                     painter.setBrush( backgroundColor );

        1. qt6.5-2.png
          247 kB
          PIlon Eddy
        2. qt6.6.png
          118 kB
          PIlon Eddy
        3. main.cpp
          2 kB
          PIlon Eddy
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            tuxrider PIlon Eddy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes