Advertisement
Guest User

Panzer

a guest
Aug 18th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.68 KB | None | 0 0
  1. // main.qml
  2. import QtQuick 2.4
  3. import QtQuick.Controls 1.3
  4. import QtQuick.Window 2.2
  5. import QtQuick.Dialogs 1.2
  6. import TextObject 1.0
  7.  
  8. ApplicationWindow {
  9.     title: qsTr("Hello World")
  10.     width: 640
  11.     height: 280
  12.     visible: true
  13.  
  14.     TextEdit {
  15.         id: textEdit1
  16.         x: 174
  17.         y: 103
  18.         width: 209
  19.         height: 20
  20.         text: qsTr("Text Edit")
  21.         font.pixelSize: 12
  22.     }
  23.  
  24.     TextObject{
  25.         id: textObject2
  26.         text: textEdit1.text
  27.     }
  28.  
  29.     Button {
  30.         id: buttonChangeTextViaCPP
  31.         x: 435
  32.         y: 103
  33.         text: qsTr("Button")
  34.         onClicked: textObject2.changeTextViaCPP("changed via C++")
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement