Advertisement
Guest User

Untitled

a guest
Jul 4th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.77 KB | None | 0 0
  1.             HelloComponent {
  2.                 id: label
  3.                 objectName: "label"
  4.                
  5.                 text: i18n.tr("Hello..")
  6.             }
  7.  
  8.             TextArea{
  9.                            id: fooText
  10.                            objectName: "valor"
  11.                            width: 550
  12.                            height: 30
  13.  
  14.                        }
  15.  
  16.             Button {
  17.                 objectName: "button"
  18.                 width: parent.width
  19.                 id: boton
  20.                 text: i18n.tr("Tap me!")
  21.  
  22.                 onClicked: {
  23.                     // prints the content of fooText to the command line
  24.                     label.text=fooText.text
  25.                     console.log(fooText.text);
  26.                 }
  27.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement