Skip to content
  • 0 Votes
    2 Posts
    804 Views
    ?

    Hi!
    The following works:

    import QtQuick 2.4 import QtQuick.Controls 1.2 import QtGraphicalEffects 1.0 ApplicationWindow { title: "Upload Form" width: 800 height: 650 visible: true Item { id: myFunkyRectangle width: 300 height: 300 RadialGradient { id: gradient anchors.fill: parent gradient: Gradient { GradientStop { position: 0.0; color: "white" } GradientStop { position: 0.5; color: "black" } } visible: false } Rectangle { id: mask anchors { fill: parent; margins: 18 } color: "black" radius: 30 clip: true visible: false } OpacityMask { anchors.fill: mask source: gradient maskSource: mask } } }