[ fromfile: creator-form-integration.xml id: creator-form-integration ]
QtCreator integrates Designer with an IDE
You can create new .ui files, header files, and corresponding cpp files all at once, from QtCreator's File -> New -> Qt -> Designer Form Class.
Figure 9.19 shows you the three styles of code generation that it supports.
right-click on any signal-emitting component in the Widget editor
or any action in the Action Editor
Next, select a signal from the list that pops up (e.g., triggered()
).
QtCreator generates a private slot for you – a prototype in the header file and a stub in the implementation file
The signal you select is automatically connected to that newly defined slot at runtime.
the connections are made by the QMetaObject::connectSlotsByName()
function.
Generated: 2012-03-02 | © 2012 Alan Ezust and Paul Ezust. |