Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.12
- import QtQuick.Window 2.12
- import QtQuick.Controls 2.5
- import QtQuick.Layouts 1.3
- import QtQuick.Dialogs 1.2
- import br.com.ultimatec.convidadodata 1.0
- Window {
- id: window
- visible: true
- width: 640
- height: 480
- title: qsTr("Tela Inicial")
- Rectangle {
- id: rectangle
- x: 166
- y: 212
- width: 294
- height: 172
- color: "#ffffff"
- radius: 25
- anchors.horizontalCenterOffset: 0
- border.width: 5
- anchors.horizontalCenter: parent.horizontalCenter
- ConvidadoData {
- id: convidadodata
- }
- Rectangle {
- id: rectangle1
- x: 41
- y: 41
- width: 246
- height: 45
- color: "#ffffff"
- radius: 20
- border.width: 2
- border.color: "#000000"
- anchors.horizontalCenter: parent.horizontalCenter
- TextInput {
- id: textInput
- text: ""
- padding: 0
- anchors.bottom: parent.bottom
- anchors.bottomMargin: 6
- anchors.top: parent.top
- anchors.topMargin: 10
- anchors.left: parent.left
- anchors.leftMargin: 20
- anchors.right: parent.right
- anchors.rightMargin: 20
- passwordCharacter: "\u25cf"
- inputMask: qsTr("")
- smooth: true
- visible: true
- clip: true
- renderType: Text.QtRendering
- cursorVisible: false
- autoScroll: false
- echoMode: TextInput.Password
- horizontalAlignment: Text.AlignHCenter
- font.family: "Arial"
- font.pixelSize: 16
- focus: true
- onEditingFinished: convidadodata.code = text
- }
- }
- Text {
- id: element1
- x: 135
- y: 116
- color: "#000000"
- text: qsTr("QR Code")
- anchors.horizontalCenterOffset: 0
- font.weight: Font.Bold
- font.capitalization: Font.MixedCase
- font.pointSize: 14
- font.family: "Arial"
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
- MessageDialog {
- id: testDialog
- title: "Bem-Vindo!"
- text: "Nome: "+convidadodata.nome +"\nIdade: "+convidadodata.idade
- icon: "Information"
- onAccepted: {
- text: "OK"
- Qt.quit()
- }
- //Component.onCompleted: visible = true
- }
- Image {
- id: image
- x: 262
- y: 55
- width: 100
- height: 100
- anchors.horizontalCenter: parent.horizontalCenter
- source: "uopatch-MCE.png"
- fillMode: Image.PreserveAspectCrop
- }
- Text {
- id: element
- x: 288
- y: 437
- color: "#000000"
- text: qsTr("Ultima Tecβ’")
- anchors.bottom: parent.bottom
- anchors.bottomMargin: 15
- anchors.horizontalCenter: parent.horizontalCenter
- verticalAlignment: Text.AlignVCenter
- font.weight: Font.Bold
- font.family: "Arial"
- styleColor: "#067600"
- font.pixelSize: 14
- }
- Connections {
- target: textInput
- onEditingFinished: {
- testDialog.open()
- convidadodata.getFindUser(textInput.text)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement