QT notes -QlineEdit

1 QlineEdit

2 Case

Construct a user login screen, enter your user name and password, click OK after checking whether the correct

(1) Layout

 

 

 Note: First drag Label ---> and Line Edit ----> ctrl-select the user name Label and Line Edit ---> click on the horizontal layout. By the same token settings

This group password.

In order to ensure that the user name and password and Line Edit neat -----> need to set the size minimumSize

 

 

 Attributes:

  Through property bar, set the example prompts the user for input length, password is echoed, etc.

 

 (2) Correlation

 

 (3) business logic

 

 







 

 

 

Guess you like

Origin www.cnblogs.com/lanjianhappy/p/11728862.html