[Qt-interest] custom widgets in designer

Dominik Kapusta d at ayoy.net
Sun Feb 22 10:40:53 CET 2009


Hey Alex,

Take a look:

http://doc.trolltech.com/4.4/designer-using-custom-widgets.html

Regards,
Dominik

On 09-02-21 19:14, "Alex Custov" <alex.custov at gmail.com> wrote:

> Hi.
> 
> In Qt3 it was possible to add custom widgets in designer, simply
> adding header file to the project. Then I was able to place this
> custom widget on the form.
> 
> I didn't find this possibility in Qt4 designer. However recently I got
> some project and found in its .ui file the following code:
> 
>  <customwidgets>
>   <customwidget>
>    <class>MComboBox</class>
>    <extends>QComboBox</extends>
>    <header>MComboBox.h</header>
>   </customwidget>
>  </customwidgets>
> 
> "uic" generates well-formed .h file from it, including MComboBox.h as
> it described in .ui file.
> 
> Does it mean that it is still possible to add custom widgets? How can
> I do it? Thanks.
> 
> P.S. This project doesn't use plugins for designer.
> 
> --
> 





More information about the Qt-interest-old mailing list