[Previous: Qt Designer's Signals and Slots Editing Mode] [Contents] [Next: Qt Designer's Tab Order Editing Mode] Qt Designer's Buddy Editing Mode
One of the most useful basic features of Qt is the support for buddy widgets. At the simplest level, a buddy widget accepts the input focus on behalf on a QLabel when the user types the label's shortcut key combination. The buddy concept is also used in Qt's model/view framework. Linking Labels to Buddy WidgetsTo enter buddy editing mode, open the Edit menu and select Edit Buddies. This mode presents the widgets on the form in a similar way to the signals and slots editing mode except that, in this mode, connections must start at label widgets. Ideally, you should connect each label widget that provides a shortcut with a suitable input widget, such as a QLineEdit.
Removing Buddy ConnectionsOnly one buddy widget can be defined for each label. To change the buddy used, it is therefore necessary to delete any existing buddy connection and create a new one. Connections between labels and their buddy widgets can be deleted in the same way as signal-slot connections in signals and slots editing mode: Select the buddy connection by clicking on it, and press the Delete key. This operation does not modify either the label or its buddy in any way. [Previous: Qt Designer's Signals and Slots Editing Mode] [Contents] [Next: Qt Designer's Tab Order Editing Mode]
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |