Advertisement
Guest User

Untitled

a guest
Jul 11th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 4.52 KB | None | 0 0
  1. import QtQuick 2.12
  2. import QtQuick.Window 2.12
  3. import QtQuick.Controls 2.0
  4. import QtQuick.Layouts 1.3
  5.  
  6. ApplicationWindow {
  7.     id: window
  8.     visible: true
  9.     width: 640
  10.     height: 480
  11.     title: qsTr("Hello World")
  12.  
  13.     header: TabBar {
  14.             id: tabBar
  15.             x: 196
  16.             y: 61
  17.             width: 240
  18.             Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
  19.             transformOrigin: Item.Center
  20.             font.capitalization: Font.AllUppercase
  21.             TabButton {
  22.                 width: 151
  23.                 height: 40
  24.                 text: qsTr("По безработице")
  25.             }
  26.             TabButton {
  27.                 x: 233
  28.                 y: 67
  29.                 width: 151
  30.                 height: 40
  31.                 text: qsTr("По инвалидности")
  32.             }
  33.             TabButton {
  34.                 x: 233
  35.                 y: 67
  36.                 width: 151
  37.                 height: 40
  38.                 text: qsTr("Пенсия")
  39.             }
  40.    }
  41.  
  42.  
  43.     ColumnLayout {
  44.         id: columnLayout
  45. //        y: 49
  46. //        height: 364
  47.         //anchors.right: parent.right
  48.         anchors.fill: parent
  49.  
  50.  
  51.         StackLayout{
  52.             anchors.fill: parent
  53.             currentIndex: tabBar.currentIndex
  54.  
  55.             Item{
  56.                 id:unemployment
  57.  
  58.  
  59.  
  60.                 ColumnLayout {
  61.                     anchors.fill: parent
  62.                     id: columnLayout1
  63.                     width: 100
  64.                     height: 100
  65.  
  66.                     Label {
  67.                         x: 22
  68.                         y: 123
  69.                         width: 83
  70.                         height: 19
  71.                         text: qsTr("Пол(по безработице)")
  72.                     }
  73.  
  74.                     Label {
  75.                         x: 22
  76.                         y: 123
  77.                         width: 83
  78.                         height: 19
  79.                         text: qsTr("Возраст(по безработице)")
  80.                     }
  81.                 }
  82.  
  83.             }
  84.  
  85.             Item{
  86.                 id:disability
  87.  
  88.                 ColumnLayout {
  89.                     anchors.fill: parent
  90.                     id: columnLayout2
  91.                     width: 100
  92.                     height: 100
  93.  
  94.                     Label {
  95.                         x: 22
  96.                         y: 123
  97.                         width: 83
  98.                         height: 19
  99.                         text: qsTr("Пол(по инвалидности)")
  100.                     }
  101.  
  102.                     Label {
  103.                         x: 22
  104.                         y: 123
  105.                         width: 83
  106.                         height: 19
  107.                         text: qsTr("Возраст(по инвалидности)")
  108.                     }
  109.                 }
  110.  
  111.             }
  112.  
  113.             Item{
  114.                 id:pension
  115.  
  116.                 ColumnLayout {
  117.                     anchors.fill: parent
  118.                     id: columnLayout3
  119.                     width: 100
  120.                     height: 100
  121.  
  122.                     Label {
  123.                         x: 22
  124.                         y: 123
  125.                         width: 83
  126.                         height: 19
  127.                         text: qsTr("Пол(пенсия)")
  128.                     }
  129.  
  130.                     Label {
  131.                         x: 22
  132.                         y: 123
  133.                         width: 83
  134.                         height: 19
  135.                         text: qsTr("Возраст(пенсия)")
  136.                     }
  137.                 }
  138.  
  139.             }
  140.         }
  141.  
  142.         //        ComboBox {
  143.         //            id: comboBox
  144.         //            x: 171
  145.         //            y: 121
  146.         //            model:ListModel{
  147.         //                ListElement{
  148.         //                    text: "Element 1"
  149.         //                }
  150.         //                ListElement{
  151.         //                    text: "Element 2"
  152.         //                }
  153.         //                ListElement{
  154.         //                    text: "Element 3"
  155.         //                }
  156.         //                ListElement{
  157.         //                    text: "Element 4"
  158.         //                }
  159.         //            }
  160.         //        }
  161.  
  162.  
  163.  
  164.     }
  165.  
  166.     //    Label {
  167.     //        id: label
  168.     //        x: 115
  169.     //        y: 179
  170.     //        width: 69
  171.     //        height: 19
  172.     //        text: qsTr("Label")
  173.     //    }
  174.  
  175. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement