<div>Hi</div>
<div>&nbsp;</div>
<div>This might be old news, but QT has change a lot in QT 4, and how the designer workes. More info can be found at <a href="http://doc.trolltech.com/4.2/porting4-designer.html">http://doc.trolltech.com/4.2/porting4-designer.html
</a></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>// anders<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 7/16/07, <b class="gmail_sendername">Anders Sandholm</b> &lt;<a href="mailto:anders.sandholm@gmail.com">anders.sandholm@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi<br><br>just realized another thing, when I open the .ui file in QT Designer<br>4.3 it says<br><br>&quot;This file was created using Designer from 
QT-3.3 and will be<br>converted to a new format by QT Designer.<br>The old for has been untouched...&quot;<br><br>and if I open the (converted and saved) ui file in a text editor the<br>includes, forwards and variables has been removed.
<br><br>Is anybody using this method or should I just create my form and then<br>create an class that inherit from the &quot;ui&quot; class and my new class add<br>the objects that I need.<br><br>Anybody using QT Designer 
4.3? I have used 3.x before and it seams<br>that a lot has been changed.<br><br>Any ideas anybody?<br><br>best regards<br>// anders<br><br><br>On 7/16/07, Benjamin Sobotta &lt;<a href="mailto:mayday@gmx.net">mayday@gmx.net
</a>&gt; wrote:<br>&gt; &gt; Hi<br>&gt; &gt;<br>&gt; &gt; I need to use QT in a project along with vtk and I compiled the vtk<br>&gt; &gt; with gui support, and I have mad some stupied examples. But then I<br>&gt; &gt; looked at the Events example that are in the
<br>&gt; &gt; QTDIR/Examples/GUI/QT/Events<br>&gt; &gt; Now this might be a Qt Designer question but I think that you know<br>&gt; &gt; this because it is tied to the QVTKWidget.<br>&gt; &gt; When I look in the file GUI.h
 the function init() there is a pointer<br>&gt; &gt; called ren1,<br>&gt; &gt;<br>&gt; &gt; ren1 = vtkRenderer::New();<br>&gt; &gt;<br>&gt; &gt; now this is not created before it is used, so this got me curious, so<br>&gt; &gt; I looked in the 
GUI.ui file and found<br>&gt; &gt;<br>&gt; &gt; &lt;includes&gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;include location=&quot;local&quot; impldecl=&quot;in<br>&gt; &gt; implementation&quot;&gt;vtkRenderer.h&lt;/include&gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;include location=&quot;local&quot; impldecl=&quot;in
<br>&gt; &gt; implementation&quot;&gt;vtkRenderWindow.h&lt;/include&gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;include location=&quot;local&quot; impldecl=&quot;in<br>&gt; &gt; implementation&quot;&gt;vtkEventQtSlotConnect.h&lt;/include&gt;
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;include location=&quot;local&quot; impldecl=&quot;in<br>&gt; &gt; implementation&quot;&gt;QVTKWidget.h&lt;/include&gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;include location=&quot;local&quot; impldecl=&quot;in<br>&gt; &gt; implementation&quot;&gt;
GUI.ui.h&lt;/include&gt;<br>&gt; &gt; &lt;/includes&gt;<br>&gt; &gt; &lt;forwards&gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;forward&gt;class vtkRenderer;&lt;/forward&gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;forward&gt;class vtkEventQtSlotConnect;&lt;/forward&gt;
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;forward&gt;class vtkObject;&lt;/forward&gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;forward&gt;class vtkCommand;&lt;/forward&gt;<br>&gt; &gt; &lt;/forwards&gt;<br>&gt; &gt; &lt;variables&gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable&gt;vtkRenderer* ren1;&lt;/variable&gt;
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable&gt;vtkRenderer* ren2;&lt;/variable&gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable&gt;vtkEventQtSlotConnect* connections;&lt;/variable&gt;<br>&gt; &gt; &lt;/variables&gt;<br>&gt; &gt;<br>&gt; &gt; and my question is where in QT Designer do I add these includes,
<br>&gt; &gt; classes and variables? I am using QT version 4.3.0<br>&gt; &gt; (if there exist an homepage/manual where this is explained please<br>&gt; &gt; point me to that one, I have tried to find information in the Qt
<br>&gt; &gt; Designer manual, but can find anything.)<br>&gt; &gt;<br>&gt; &gt; best regards<br>&gt; &gt; Anders<br>&gt;<br>&gt; Hi!<br>&gt;<br>&gt; You can set member variables of your GUI in the &quot;Object Explorer&quot;. Most likely it&#39;s one of the windows on the right side of designer. There you change to tab &quot;Members&quot; and you&#39;ll find ren1 and ren2 under &quot;Class Variables&quot; -&gt; &quot;protected&quot;.
<br>&gt;<br>&gt; HTH,<br>&gt;<br>&gt; Benjamin<br>&gt;<br></blockquote></div><br>