CopperSpice API  1.8.0
Buddy Editing Mode

A buddy widget accepts the input focus on behalf of a QLabel when the user types the label's shortcut key combination. The buddy concept is also used in the Model/View Architecture.

Linking Labels to Buddy Widgets

To enter the buddy editing mode open the Edit menu and select Edit Buddies. In this mode connections must start at label widgets. Connect each label widget that provides a shortcut with a corresponding input widget like QLineEdit or QSpinBox.

To define a buddy widget for a label click on the label and then drag the connection to another widget on the form and release the mouse button. The connection shown indicates how input focus is passed to the buddy widget. You can use the form preview to test the connections between each label and its buddy.

Removing Buddy Connections

Only one buddy widget can be defined for each label. To change the buddy you must first delete the existing buddy connection.