[Qt-interest] Problem setting extends value of qt plugins
Simon Schäfer
SirTwist at web.de
Mon May 17 16:45:21 CEST 2010
Hi everyone,
I have created a set of custom widgets which I use within the designer. One of
the custom widgets is an enhanced Pushbutton which inherits from
QAbstractButton, the designer now stores the custom Pushbutton in the ui file
as extended from QWidget instead of QPushButtton. Is there a way to set the
extend field within the ui file through the plugin code?
The major problem is as soon as someone who does not have the plugin is using
the ui he can not modify the button text because its displayed as a widget,
and has to manually edit the xml to set the extend field to QPushButton.
Example :
currently the button coming from the custom plugin is stored as below
<customwidget>
<class>CustomButton</class>
<extends>QWidget</extends>
<header>include/custombutton.h</header>
</customwidget>
and it should be something like the following to work on designers which are
not using the plugin lib:
<customwidget>
<class>CustomButton</class>
<extends>QPushButton</extends>
<header>include/custombutton.h</header>
<container>1</container>
</customwidget>
Cheers
Simon
More information about the Qt-interest-old
mailing list