Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML load file.qml and scale
Forum Updated to NodeBB v4.3 + New Features

QML load file.qml and scale

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlloaderscaleanchoring
1 Posts 1 Posters 352 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TMJJ001
    wrote on 18 Jan 2020, 12:44 last edited by
    #1

    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

    1 Reply Last reply
    0

    1/1

    18 Jan 2020, 12:44

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved