how to place the window ?
Unsolved
QML and Qt Quick
-
Hi,
After this basic code to create a window:
import QtQuick 2.9
import QtQuick.Window 2.2
import QtQuick.VirtualKeyboard 2.2Window {
id: window
visible: true
width: 100
height: 100
title: qsTr("World Tekken")
color: "blue"
}what is the function or code to insert in addition to place it according to the coordinates (x, y) when the program above is compiled and executed?
thanks
-
What do you want place ? what do u want to insert ? where do you want to place ? Some clarity will help.
-
you place the window by manipulating x and y of your
window
to place it in the center of a single moitor setup:
Window { id: window visible: true x: (Screen.desktopAvailableWidth - width)/2 y: (Screen.desktopAvailableHeight - height)/2 width: 100 height: 100 title: qsTr("World Tekken") color: "blue" }