<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi.<br>
<br>
Just select Widget template in the startup dialog of the Designer.<br>
<br>
<blockquote
cite="mid:CAL-VaPf8589=j2_m_y6qZSxjq_b1hPOF_8=2WnRUUqNtLhuhCA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div><br>
</div>
<div>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)"><?xml</span><span style="color:rgb(192,192,192)"> </span>version="1.0"<span style="color:rgb(192,192,192)"> </span>encoding="UTF-8"<span style="color:rgb(128,128,0)">?></span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)"><ui</span><span style="color:rgb(192,192,192)"> </span>version=<span style="color:rgb(170,0,0)">"4.0"</span><span style="color:rgb(128,128,0)">></span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)"><class></span>dialog_base<span style="color:rgb(128,128,0)"></class></span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)"><widget</span><span style="color:rgb(192,192,192)"> </span>class=<span style="color:rgb(170,0,0)">"QDialog"</span><span style="color:rgb(192,192,192)"> </span>name=<span style="color:rgb(170,0,0)">"dialog_base"</span><font color="#808000">> </font><b><font color="#000000"><-- This needs to be a QWidget class</font></b></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)"><property</span><span style="color:rgb(192,192,192)"> </span>name=<span style="color:rgb(170,0,0)">"geometry"</span><span style="color:rgb(128,128,0)">></span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)"><rect></span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)"><x></span>0<span style="color:rgb(128,128,0)"></x></span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)"><y></span>0<span style="color:rgb(128,128,0)"></y></span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)"><width></span>1063<span style="color:rgb(128,128,0)"></width></span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)"><height></span>648<span style="color:rgb(128,128,0)"></height></span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)"></rect></span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)"></property></span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)"><property</span><span style="color:rgb(192,192,192)"> </span>name=<span style="color:rgb(170,0,0)">"windowTitle"</span><span style="color:rgb(128,128,0)">></span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)"><string></span>Dialog<span style="color:rgb(128,128,0)"></string></span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)"></property></span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)"></widget></span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)"><resources/></span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)"><connections/></span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)"></ui></span></pre>
</div>
<br clear="all">
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
-- <br>
<div dir="ltr"><surgemcgee> Systems/Software Engineer<br>
<br>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Interest mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Interest@qt-project.org">Interest@qt-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.qt-project.org/mailman/listinfo/interest">http://lists.qt-project.org/mailman/listinfo/interest</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Best Regards,
Igor Mironchik.</pre>
</body>
</html>