Commit 220a2c14 authored by animesh's avatar animesh

added quit button

parent 3f07a9e2
home.png

48.8 KB

......@@ -72,4 +72,37 @@ ApplicationWindow {
}
}
}
Item {
height: 50
width: 50
anchors {
left: parent.left
leftMargin: 30
top: parent.top
topMargin: 20
}
Image {
anchors.fill: parent
source: "images/quit.png"
}
MouseArea {
anchors.fill: parent
onClicked: {
Qt.quit();
}
}
Text {
text: "Quit"
anchors {
horizontalCenter: parent.horizontalCenter
top: parent.top
topMargin: 50
}
color: "white"
font.bold: true
}
}
}
......@@ -22,5 +22,7 @@
<file>quiz.png</file>
<file>build.png</file>
<file>back.png</file>
<file>home.png</file>
<file>quit.png</file>
</qresource>
</RCC>
quit.png

26.8 KB

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment