Page { id: root Settings { id: settings organizationName: "Me" applicationName: "MyApplication" } Button { id: button anchors.centerIn: parent text: "Screenshot" onClicked: platformWindow.takeScreenShot(settings.value("screenShotFolder", "/home/user/MyDocs/Images/") + "screenshot.png") // x, y, width, height, scaledWidth and scaledHeight can also be specified. } }