• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

kapptemplate

  • sources
  • kde-4.12
  • kdesdk
  • kapptemplate
  • templates
  • QML
  • qt5-qml2
  • src
  • qml
QML/qt5-qml2/src/qml/main.qml
Go to the documentation of this file.
1 
2 import QtQuick 2.0
3 
4 Rectangle {
5  width: 300
6  height: 240
7  color: "steelblue"
8  Text {
9  text: "Right click to change background color \nand left click to quit."
10  anchors.centerIn: parent
11  color: "white"
12  }
13  MouseArea {
14  anchors.fill: parent
15  acceptedButtons: Qt.LeftButton | Qt.RightButton
16  onClicked: {
17  if (mouse.button == Qt.RightButton)
18  parent.color = 'green';
19  else
20  Qt.quit();
21  }
22  }
23 }
Rectangle
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kapptemplate

Skip menu "kapptemplate"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal