<?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[I want to Align an item to the right in qml]]></title><description><![CDATA[<pre><code>Column {
                    id:column
                    spacing: 10
                    width: parent.width
      Repeater{
          model:5
                       Row {
                                  leftPadding:17
                                  topPadding:10
                                  spacing: 10
                                    Image {
                                             id:img
                                              height: 50
                                              width: 50
                                              source:"icon.png"
                                     }
                                    Text {
                                        text:"User_name"
                                        topPadding:12
                                   }
                                    Rectangle{
                                        height: 40
                                        width:40
                                        color: "#333333"
                                        Layout.alignment: Qt.AlignRight
                                    }
                                }
      }

  }
I have Used Layout.alignment: Qt.AlignRight to show the rectangle to the right, But its not working. I don't understand why It is not working, I have also tried Layout.fillWidth: true inside an Item but still not working
</code></pre>
]]></description><link>https://forum.qt.io/topic/122550/i-want-to-align-an-item-to-the-right-in-qml</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 19:38:02 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/122550.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 10 Jan 2021 17:10:48 GMT</pubDate><ttl>60</ttl></channel></rss>