<div dir="ltr">I think you should call renderWindow<span style="color: rgb(0, 0, 0);">-&gt;</span>Render<span style="color: rgb(0, 0, 0);">() not renderer-&gt;Render();<br><br>It works fine on my m/c with the same setup (vtk+qt+qtcreator).<br>
<br>Jothy<br></span><br><div class="gmail_quote">On Thu, Aug 5, 2010 at 12:18 PM,  <span dir="ltr">&lt;<a href="mailto:ruben.hernando.vaca@upc.edu">ruben.hernando.vaca@upc.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
Well, this is my problem when I debut on QT + VTK + QTCREATOR:<br>
<br>
MainWindow::MainWindow(QWidget *parent) :<br>
    QMainWindow(parent),<br>
    ui(new Ui::MainWindow)<br>
{<br>
    ui-&gt;setupUi(this);<br>
    vtkWidget = new QVTKWidget(this,QFlag(0));<br>
    ui-&gt;verticalLayout-&gt;addWidget(vtkWidget);<br>
    ui-&gt;verticalLayout-&gt;update();<br>
    ren = vtkRenderer::New();<br>
    vtkWidget-&gt;GetRenderWindow()-&gt;AddRenderer(ren);<br>
    ren-&gt;SetBackground(1.0,1.0,1.0);<br>
    ren-&gt;Render();-----------------------&gt;PROBLEM!!!! --&gt;&gt;&gt;The inferior   stopped   because it received a signal from the Operating    System. Signal name : SIGSEGV - Signal meaning : Segmentation fault<br>

<br>
}<br>
<br>
When I debut, with Qtcreator everything is ok until the instrucction ren-&gt;Render() is executed and have the message: The inferior   stopped   because it received a signal from the Operating System. Signal name : SIGSEGV - Signal meaning : Segmentation fault.<br>

<br>
I have the same message when at the command line i use qmake, make....<br>
<br>
My Desktop PC  has: Ati X1300, the openGL runs so good and the qtdemo is ok.<br>
<br>
On the other hand I have laptop HP with the same S.O ubuntu 9.10 and run QT+VTK+QTCreator, the different thing is the Card which is the NVIDIA, but i don&#39;t thing so it would be that because the openGl runs so good in my Desktop PC.<br>

<br>
Another things is that in the Desktop PC I display two monitors in dual-mode thats mean that the graphic card configuration is good.<br>
<br>
What happened?? I know, there are three topics QT,VTK and linux but I so sure the problem is VTK.<br>
<br>
Thanks for all<br>
<br>
Ruben.<br>
<br>
<br>
<br>
<br>
_______________________________________________<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>
</blockquote></div><br></div>