Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QML load file.qml and scale



  • Dear,

    I want to make a resizable application. Until now I was able to make everything resizable.
    Now for the following I need some support.

    By a push of a button, I will load a new QML file in my "workspace".
    I created a LMB_Main.qml were I have 3 images.

    When I load the LMB.qml file, it doesn't fit the workspace.
    How can I rescale this LMB_Main to make it fit the workspace?

     Item {
                id: workspace
                x: 0
                y: 0
                Layout.fillHeight: true
                Layout.fillWidth: true
    
                Loader {
                    id: pageloader
                    anchors.centerIn: parent
                    //anchors.fill: parent
                    source: "LMB_Main.qml"
                }
    
            }
    

    Screenshot_2.png
    Thanks in advance,
    Kind regards,
    TMJJ