Guest User

Untitled

a guest
Jun 25th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. import QtQuick 1.1
  2.  
  3. Rectangle {
  4. id: loginView;
  5. width: 230; height: 100;
  6.  
  7. property int loginFontSize: 12;
  8.  
  9. Grid {
  10. anchors { horizontalCenter: parent.horizontalCenter; verticalCenter: parent.verticalCenter; }
  11.  
  12. columns: 2
  13. spacing: 10
  14.  
  15. Text { id: loginText; text: "Login"; font.pointSize: loginView.loginFontSize; }
  16. Rectangle {
  17. border.color: "#808080";
  18. width: 100;
  19. height: loginText.height
  20. TextInput {
  21. id: login
  22. font.pointSize: loginText.font.pointSize;
  23. anchors.fill: parent
  24. }
  25. }
  26.  
  27. Text { text: "Password"; font.pointSize: loginView.loginFontSize; }
  28. Rectangle {
  29. border.color: "#808080";
  30. width: 100;
  31. height: loginText.height
  32. TextInput {
  33. id: password
  34. font.pointSize: loginText.font.pointSize;
  35. anchors.fill: parent
  36. }
  37. }
  38. }
  39. }
Add Comment
Please, Sign In to add comment