main.qml 442 B

12345678910111213141516171819
  1. import QtQuick 2.15
  2. import QtQuick.Window 2.15
  3. import QtQuick.Controls 2.15
  4. FramelessWindow {
  5. property FramelessWindow childWindow: FramelessWindow {
  6. showWhenReady: false
  7. }
  8. Button {
  9. anchors {
  10. horizontalCenter: parent.horizontalCenter
  11. bottom: parent.bottom
  12. bottomMargin: 20
  13. }
  14. text: qsTr("Open Child Window")
  15. onClicked: childWindow.visible = true
  16. }
  17. }