QML 1.1 Gradient strange



  • Hello,
    I am trying to integrate a gradient in my application. But as you can see in the picture, the color gradient is not continuous. Everything looks fine on my desktop PC, but not on my embedded device. Any of you have any idea what that might be?

    The color gradient in the rectangle is defined as follows.

    gradient: Gradient {
    GradientStop { position: 0.0; color: "#1c1c1c" }
    GradientStop { position: 1.0; color: "#545454"}
    }

    0_1519816154127_20180228_115026.jpg


  • Moderators

    @RubberJones
    alternative:

     LinearGradient {
            anchors.fill: parent
            start: Qt.point(0, 0)
            end: Qt.point(parent.width, 0)
            gradient: Gradient {
                GradientStop { position: 0.0; color: "#1c1c1c" }
                GradientStop { position: 1.0; color: "#545454" }
            }
        }
    


  • @raven-worx
    LinearGradient is not available with Qt Quick 1.1 after all


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.