Skip to content

Instantly share code, notes, and snippets.

@ratijas
Created May 9, 2020 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ratijas/9ef914f8dbf57360dc888e0294658a2a to your computer and use it in GitHub Desktop.
Save ratijas/9ef914f8dbf57360dc888e0294658a2a to your computer and use it in GitHub Desktop.
import QtQuick 2.12 as QQ
import QtQuick.Window 2.12 as QQW
import Qt.labs.platform 1.1 as QLP
import QtQuick.Controls 2.12 as QQC2
QQW.Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
QQ.Rectangle {
width: 200
height: 200
anchors.fill: parent
anchors.centerIn: parent
QQC2.MenuBar {
id: menuBar
QQC2.Menu {
id: firstMenu
QQC2.MenuItem {
icon.name: "download"
icon.source: "icons/cloud-down-icon.png"
}
QQC2.MenuItem {
text: qsTr("Rewrap Paragraph")
onTriggered: rewrapParagraph()
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment