Hii everyone,

I have a login page (username + password), I want when I click on the button [B] Enter [/ B] after typing the password --> Log in as pressing Button Log in : 1.png

code Button Log in :
Qt Code:
  1. Rectangle{
  2. property color previousColor: "transparent"
  3. id: rectangle1
  4. ...
  5. Text {
  6. id: txtLogin
  7. text: qsTr("LOG IN")
  8. ...
  9. }
  10. MouseArea{
  11. id: mouse
  12. anchors.fill: parent
  13. onClicked: {
  14. if(change.text=="USER")
  15. {
  16. if((textinputmod1.txt=="USER")&&(textinputmod2.txt=="1234"))
  17. {
  18. userPage.visible=true
  19. }
  20. else{
  21. winIncId.visible= true
  22. }
  23. textinputmod1.txt= ""
  24. textinputmod2.txt= ""
  25. textinputmod1.focus=true
  26. }
  27. ...
  28. }
  29. }
  30. }
To copy to clipboard, switch view to plain text mode 

code TextInput of password:
Qt Code:
  1. TextInputMod {
  2. id: textinputmod2
  3. textinput: "Password"
  4. mode: TextInput.Password
  5. ...
  6.  
  7.  
  8. }
  9. }
To copy to clipboard, switch view to plain text mode 

Cheers,