Guest User

Untitled

a guest
Jul 12th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. import QtQuick 2.5
  2. import QtQuick.Window 2.2
  3.  
  4. Window {
  5. visible: true
  6. width: 400
  7. height: 600
  8.  
  9. LoginForm {
  10. anchors.centerIn: parent
  11. //height: 300
  12. //width: 300
  13. }
  14.  
  15. }
  16.  
  17. import QtQuick.Controls 1.4
  18. import QtQuick.Layouts 1.2
  19.  
  20. Item {
  21.  
  22. Rectangle {
  23. color: "#E8E8E8"
  24. radius: 5
  25. anchors.centerIn: parent
  26. anchors.fill: parent
  27. width: childrenRect.width
  28. height: childrenRect.height
  29.  
  30. GridLayout {
  31. id: "grid_layout"
  32. flow: GridLayout.TopToBottom
  33. anchors.centerIn: parent
  34. anchors.top: parent.top
  35. anchors.bottom: parent.bottom
  36. anchors.left: parent.left
  37. anchors.right: parent.right
  38. anchors.topMargin: 12
  39. anchors.bottomMargin: 12
  40. anchors.leftMargin: 12
  41. anchors.rightMargin: 12
  42.  
  43. Text {
  44. id: "log_in_label"
  45. text: "Log In"
  46. font.pointSize: 15;
  47. }
  48.  
  49. Text {
  50. id: "username_label"
  51. text: "Username:"
  52. font.pointSize: 8
  53. }
  54.  
  55. TextField {
  56. id: "username_input"
  57. Layout.columnSpan: 2
  58. font.pointSize: 8
  59. }
  60.  
  61. Text {
  62. id: "password_label"
  63. text: "Password:"
  64. font.pointSize: 8
  65. }
  66.  
  67. TextField {
  68. id: "password_input"
  69. Layout.columnSpan: 2
  70. font.pointSize: 8
  71. }
  72.  
  73. Button {
  74. text: "Sign in"
  75. }
  76. }
  77. }
  78. }
Add Comment
Please, Sign In to add comment