import QtQuick 2.6 import QtQuick.Controls 2.2 import QtQuick.Window 2.2 Window { visible: true width: 640 height: 480 Row{ id: row spacing: 4 property int buttonSize: Screen.pixelDensity * 30 width: buttonSize; Button{ text: qsTr("1") height: row.buttonSize; width: row.buttonSize; } Button{ text: qsTr("2") height: row.buttonSize; width: row.buttonSize; } } }