I agree with Clinton. I have recently (past two weeks) encountered the same problem and have traced it back to mixing debug and release Qt libraries while building against release Vtk.<br><br>What happened:<br><br>1) I have a single Qt-install with both debug and release libraries... <br>
2) I then built Vtk in Release mode with GUI_SUPPORT and QTGUI on.<br>3) Then, vtkRendering is linked against the debug libs of Qt.<br><br>In my opinion this is a bug in building Vtk, but I have not yet been able to find the cause in the CmakeLists.txt (yet).<br>
<br>What used to work:<br><br>Have two Qt-installations: one with debug and one with release libraries.<br>Build/install debug Vtk while using the debug Qt-libraries<br>Build/install release Vtk while using the release Qt-libraries.<br>
<br>Regards,<br>AndrĂ©<br><br><br><div class="gmail_quote">On Mon, Feb 27, 2012 at 4:59 PM, Clinton Stimpson <span dir="ltr">&lt;<a href="mailto:clinton@elemtech.com">clinton@elemtech.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Saturday, February 25, 2012 08:31:09 pm <a href="mailto:lindeval@dmat.ufrr.br">lindeval@dmat.ufrr.br</a> wrote:<br>
&gt; Has anyone encountered this problem:<br>
&gt; QWidget: Must Construct a QApplication before a QPaintDevice?<br>
&gt;<br>
&gt; I&#39;m using QWT with mingw on windows 7.<br>
<br>
</div>I&#39;ve seen that happen on Windows when one gets both debug and release Qt<br>
libraries loaded at runtime.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Clinton Stimpson<br>
Elemental Technologies, Inc<br>
Computational Simulation Software, LLC<br>
<a href="http://www.csimsoft.com" target="_blank">www.csimsoft.com</a><br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br>