![]() |
Home · Examples |
[Previous: Creating Main Windows in Qt Designer][Qt Designer Manual][Next: Qt Designer's Buddy Editing Mode]
![]() | Highlighted Objects When the cursor is over an object that can be used in a connection, the object will be highlighted. To make a connection, press the left mouse button, and drag the cursor towards the object you want to connect it to. |
You can abandon the connection at any point while you are dragging the connection path by pressing Esc.
![]() | Making a Connection The connection path changes shape as the cursor moves around the form. As it passes over objects, they are highlighted, indicating that they can be used in a signal and slot connection. Release the mouse button to make the connection. |
To complete the connection, select a signal from the source object and a slot from the destination object, then click the OK button. Click Cancel if you wish to abandon the connection.
![]() | Choosing Signals and Slots The Configure Connection dialog presents the signals that can be emitted by the source object alongside a list of compatible slots in the destination object. When you select a signal, the dialog automatically updates the list of compatible slots to ensure that a valid connection is made. If the Show all signals and slots checkbox is selected, all available signals from the source object are shown. Otherwise the signals and slots inherited from QWidget is hidden. |
![]() | Connecting to a Form Connections can be made between objects on the form and the form itself. Instead of dragging a connection path to another object, position the cursor over the form and release the mouse button. To make it clear that the connection will be made with the form itself, the end point of the connection changes to an electrical "ground" symbol. |
![]() | The Signal/Slot Editor The signal and slot used in a connection can be changed after it has been set up. When a connection is configured, it becomes visible in Qt Designer's signal and slot editor where it can be further edited. |
![]() | Deleting Connections The whole connection can be selected by clicking on any of the path segments. Once selected, connections can be deleted with the Delete key, and they will not be set up in the .ui file. |
Copyright © 2008 Nokia | Trademarks | Qt Jambi 4.4.3_01 |