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

Customisation documentation includes deprecated DropShadow example

    XMLWordPrintable

Details

    • ba3664c4d (dev), 8b2c1352a (6.7), 17f35646b (tqtc/lts-6.5)
    • DaVinci 96

    Description

      The documentation on doc.qt.io about how to customize Qt Quick Controls includes an example using the deprecated DropShadow QML type instead of a MultiEffect.

      Page:tps://doc.qt.io/qt-6/qtquickcontrols-customize.html#customizing-label

      Example code:

      // ...
      import QtGraphicalEffects
      import MyStyle
      // ...

      background: Rectangle {
          // ...

          layer.enabled: control.enabled && control.MyStyle.elevation > 0
          layer.effect: DropShadow

      {         verticalOffset: 1         color: control.visualFocus ? "#330066ff" : "#aaaaaa"         samples: control.MyStyle.elevation         spread: 0.5     }

      }

       

      Attachments

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

        Activity

          People

            andreas.eliasson Andreas Eliasson
            peter.schneider Peter Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes