import QtQuick 2.6; import QtQuick.Controls 2.1; Rectangle { id: root; width: 1280; height: 720; color: "darkblue"; Column { Button { id: fileButton text: "File" onClicked: menu.open() Menu { id: menu y: fileButton.height x: fileButton.width MenuItem { text: "New..." } MenuItem { text: "Open..." } MenuItem { text: "Save" } } } TextField { placeholderText: qsTr("Enter name") } MouseArea { cursorShape: Qt.SizeHorCursor; width: 200; height: 30; } } }