[Interest] How can I change a designer for base class?

Igor Mironchik igor.mironchik at gmail.com
Fri Dec 20 17:51:28 CET 2013


Hi.

Just select Widget template in the startup dialog of the Designer.

>
> I have created a UI form which will inherit into a pre-built widget. 
> When I add a new designer form with the Qt wizard, it creates the form 
> with a base class of QDialog. How can I change the form base class to 
> a QWidget? The xml file cannot be changed in the editor, so I assume 
> it is not wise to do so.
>
>
> <?xml  version="1.0"  encoding="UTF-8"?>
> <ui  version="4.0">
>   <class>dialog_base</class>
>   <widget  class="QDialog"  name="dialog_base">*<-- This needs to be a QWidget class*
>    <property  name="geometry">
>     <rect>
>      <x>0</x>
>      <y>0</y>
>      <width>1063</width>
>      <height>648</height>
>     </rect>
>    </property>
>    <property  name="windowTitle">
>     <string>Dialog</string>
>    </property>
>   </widget>
>   <resources/>
>   <connections/>
> </ui>
>
>
>
>
> -- 
> <surgemcgee> Systems/Software Engineer
>
>
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-- 
Best Regards,
Igor Mironchik.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131220/5d661af6/attachment.html>


More information about the Interest mailing list