QtCreator GUI Designer exchange widget type
-
The GUI-Designer has the feature for some widget types to exchange it with an other type of widget.
Context-menu of a widget "Morph into".F.e. QPushButton -> QCheckBox
Now, have build my own Widget derive from the basic widget.
E.e. QPushButton -> class AdvPushButton: public QPushButtonI want to exchange most Buttons of my projects with the designer.
The only practicalbe way I found to edit the *.ui files by hand in a text editor.
Is there an easy way to do this?
Can I enhance the widget exchange feature of the creator itself ? -
The GUI-Designer has the feature for some widget types to exchange it with an other type of widget.
Context-menu of a widget "Morph into".F.e. QPushButton -> QCheckBox
Now, have build my own Widget derive from the basic widget.
E.e. QPushButton -> class AdvPushButton: public QPushButtonI want to exchange most Buttons of my projects with the designer.
The only practicalbe way I found to edit the *.ui files by hand in a text editor.
Is there an easy way to do this?
Can I enhance the widget exchange feature of the creator itself ?@Andy314
To make the exchange feature work, you have to write a plug-in for the widget designer, dealing with your custom checkbox.
However, if it’s a mass change, editing the XML is probably easier.
Mind that this doesn’t change any of the slot names, should you have auto created ones.