<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[layer effect]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm working with Slider like below, but handle not takes background shape overflows the background.<br />
How can i solve this problem?</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/e71a3ddd-2274-4148-b89e-bc120ea8315e.png" alt="slider.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">My qml code;<br />
background: Rectangle<br />
{<br />
id : backgroundRectId<br />
anchors.fill: parent<br />
radius: 50<br />
color : "black"<br />
border {width: 2 ; color : "#2f4f4f"}</p>
<pre><code>        Row
        {
            id : indicatorRowId
            anchors.fill: parent
            spacing: parent.width / 8
            leftPadding: spacing
            Repeater
            {
                id : repeaterId
                model : 7
                Rectangle
                {
                    id : indicatorRectId
                    width: 2
                    height: backgroundRectId.height*0.25
                    anchors.bottom: parent.bottom
                    color : "gray"
                }
            }
        }


        Repeater
        {
            id : textRepeaterId
            model : 7
            Text
            {
                id : textId
                x : sliderId.positionFromValue((modelData + 1) * 180) - width / 2
                anchors.verticalCenter: parent.verticalCenter
                color : "white"
                font.pointSize: 9
                font.bold: true
                text : (modelData * 3 + 3) &lt; 10 ? "0" + (modelData * 3 + 3) : (modelData * 3 + 3)
            }
        }
    }

    handle : Item
    {
        id : handleId
        width : rowId.width
        height: parent.height
        x : sliderId.handlePosition()

        layer.enabled: true
        layer.effect: OpacityMask
        {
            maskSource: backgroundRectId
        }

        Row
        {
            id : rowId
            height: parent.height
            spacing: 5

            Rectangle
            {
                id : handleBarId
                width: 2
                anchors.verticalCenter: parent.verticalCenter
                height: parent.height
            }
            Text
            {
                id : handleTextId
                color : "white"
                anchors.verticalCenter: parent.verticalCenter
                font.pointSize: 9
                font.bold: true
                text : "15:38"
            }
        }
    }
</code></pre>
<p dir="auto">Best regards.</p>
]]></description><link>https://forum.qt.io/topic/144440/layer-effect</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 10:25:55 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/144440.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 17 Apr 2023 15:02:52 GMT</pubDate><ttl>60</ttl></channel></rss>