<div>Hi</div>
<div> </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> </div>
<div> </div>
<div>// anders<br><br> </div>
<div><span class="gmail_quote">On 7/16/07, <b class="gmail_sendername">Anders Sandholm</b> <<a href="mailto:anders.sandholm@gmail.com">anders.sandholm@gmail.com</a>> 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>"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..."<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 "ui" 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 <<a href="mailto:mayday@gmx.net">mayday@gmx.net
</a>> wrote:<br>> > Hi<br>> ><br>> > I need to use QT in a project along with vtk and I compiled the vtk<br>> > with gui support, and I have mad some stupied examples. But then I<br>> > looked at the Events example that are in the
<br>> > QTDIR/Examples/GUI/QT/Events<br>> > Now this might be a Qt Designer question but I think that you know<br>> > this because it is tied to the QVTKWidget.<br>> > When I look in the file GUI.h
the function init() there is a pointer<br>> > called ren1,<br>> ><br>> > ren1 = vtkRenderer::New();<br>> ><br>> > now this is not created before it is used, so this got me curious, so<br>> > I looked in the
GUI.ui file and found<br>> ><br>> > <includes><br>> > <include location="local" impldecl="in<br>> > implementation">vtkRenderer.h</include><br>> > <include location="local" impldecl="in
<br>> > implementation">vtkRenderWindow.h</include><br>> > <include location="local" impldecl="in<br>> > implementation">vtkEventQtSlotConnect.h</include>
<br>> > <include location="local" impldecl="in<br>> > implementation">QVTKWidget.h</include><br>> > <include location="local" impldecl="in<br>> > implementation">
GUI.ui.h</include><br>> > </includes><br>> > <forwards><br>> > <forward>class vtkRenderer;</forward><br>> > <forward>class vtkEventQtSlotConnect;</forward>
<br>> > <forward>class vtkObject;</forward><br>> > <forward>class vtkCommand;</forward><br>> > </forwards><br>> > <variables><br>> > <variable>vtkRenderer* ren1;</variable>
<br>> > <variable>vtkRenderer* ren2;</variable><br>> > <variable>vtkEventQtSlotConnect* connections;</variable><br>> > </variables><br>> ><br>> > and my question is where in QT Designer do I add these includes,
<br>> > classes and variables? I am using QT version 4.3.0<br>> > (if there exist an homepage/manual where this is explained please<br>> > point me to that one, I have tried to find information in the Qt
<br>> > Designer manual, but can find anything.)<br>> ><br>> > best regards<br>> > Anders<br>><br>> Hi!<br>><br>> You can set member variables of your GUI in the "Object Explorer". Most likely it's one of the windows on the right side of designer. There you change to tab "Members" and you'll find ren1 and ren2 under "Class Variables" -> "protected".
<br>><br>> HTH,<br>><br>> Benjamin<br>><br></blockquote></div><br>