Hi,<br><br>That is what I ended up doing. Just extending from QVTKWidget and overriding te resizeEvent method.<br><br>Thanks!<br><br>Anja<br><br><div><span class="gmail_quote">On 15/09/06, <b class="gmail_sendername">Jesús Spí­nola
</b> &lt;<a href="mailto:jspinola@gmail.com">jspinola@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>On the qt resize event i call the GetRenderWindow()-&gt;GetSize() method from the qvtkwidget and i get the right size
<br><br><div><span class="gmail_quote">2006/8/26, Clinton Stimpson &lt;<a href="mailto:clinton@elemtech.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
clinton@elemtech.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"></blockquote></div><div><span class="e" id="q_10db12cc76d3eb2d_1">
<br>&gt; From: &quot;Anja Ende&quot; &lt;<a href="mailto:anja.ende@googlemail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
anja.ende@googlemail.com</a>&gt;<br>&gt; Subject: Re: [vtkusers] size of QVTKWidget<br>&gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">vtkusers@vtk.org</a>
<br>&gt;<br>&gt; Hi Clint,<br>&gt;<br>&gt; Thanks for your reply. I really tried calling ensurePolished() and it still
<br>&gt; returns the same window size.<br>&gt;<br>&gt; Actually if I query the window size after the exec() has returned, then it<br>&gt; returns the correct value... But my then it is too late :(<br>&gt;<br>&gt; Here is a bit of code, to see when I am actually querying for the size...
<br>&gt;<br>&gt; QHBoxLayout * mainLayout = new QHBoxLayout;<br>&gt; mainLayout-&gt;addLayout(viewersLayout);<br>&gt; mainLayout-&gt;addLayout(toolbarLayout);<br>&gt;<br>&gt; mainWindow.AddLayout(mainLayout);<br>&gt; mainWindow.Pack

();<br>&gt; // As you can see, I call show before I query the size...<br>&gt; mainWindow.showFullScreen();<br>&gt;<br>&gt; // totally bogus values....<br>&gt; int * size = xyViewer-&gt;GetSize();<br>&gt;<br>&gt; Is there a way yo override some of these creation events....???
<br>&gt;<br>&gt; Cheers and thanks,<br>&gt;<br>&gt; Anja<br>&gt;<br><br>It appears the full screen thing makes the difference.&nbsp;&nbsp;The reason why,<br>I'm not sure.<br>Delayed initialization is done by getting the polish event.&nbsp;&nbsp;But in this
<br>case, the resize appears to be done after the polish event.&nbsp;&nbsp;I expect<br>the resize to be before the polish.<br>It behaves the same whether it is a normal QWidget or the QVTKWidget.<br>So I suggest you take your question to the qt interest list, and ask
<br>them for more information or for a solution.<br><br>Clint<br><br></span></div><div>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: 
<a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br></div><br>

</div></blockquote></div><br>