AnsweredAssumed Answered

How to show Images In a row using repeater in qml?

Question asked by trupti_15 on Aug 22, 2020
Latest reply on Aug 22, 2020 by trupti_15

so i have to show 9 images on my page, so I have used repeater, but the problem is that I want to show the images in a row, but in out put it shows in a column. I am working on a mobile application using qml. So can anybody suggest me how to show it in a row format using qml?

Here is my code

ColumnLayout {   
        spacing: 10    
        clip:true  
        Repeater{        
        model: 9   
                Row{      
                   id:icons  
                   spacing:30   
                   Layout.alignment: Qt.AlignHCenter   
                      Image {     
                        id: img1     
                        source:"path to images"   
                        height: 50       
                        width:50        
                         }   
                    }    
         }   
}

Outcomes