The partnership, as the name implies, sets the associated operations between the specified controls.
Deploy the form layout in QtDesigner, and set hot keys in the three Labels;
Hotkey deployment method: Edit Label Text: Text (& key position)
such as: Name (&A)
TIPS: Use half-width brackets.
Deploy partnership: Edit-edit partner-left-click on the upper menu, hold down a control and drag it to the designated partner control.
Hotkey use: Alt+specify key position
The following is the partner code in the PY file:
self.label.setBuddy(self.lineEdit)
self.label_2.setBuddy(self.lineEdit_2)
self.label_3.setBuddy(self.lineEdit_3)