<div dir="ltr">Hi Waldo,<br><br>Could you please explain how you modified the QVTKWidget::resizeEvent( QResizeEvent* ) function to solve this problem?<br>I and some other people are affected by this bug with QVTKWIdget and retina displays, see :<br><br><a href="http://vtk.1045678.n5.nabble.com/QVTKWidget-and-MacOS-problems-td5729620.html" target="_blank">http://vtk.1045678.n5.nabble.com/QVTKWidget-and-MacOS-problems-td5729620.html</a><br><a href="http://vtk.1045678.n5.nabble.com/imageViewer-size-within-QVTKWidget-td5729578.html">http://vtk.1045678.n5.nabble.com/imageViewer-size-within-QVTKWidget-td5729578.html</a><br><br>Tried something like :<br><div><br></div><div><span style="white-space:pre">--------------------------------------------------------
QWidget::resizeEvent( a_event );

if( !this->mRenWin ){
   return;
}
                        
this->mRenWin->vtkRenderWindow::SetSize( this->width()*devicePixelRatio(), this->height()*devicePixelRatio() );

if( this->mRenWin->GetInteractor() ){
  mIrenAdapter->ProcessEvent( a_event, this->mRenWin->GetInteractor() );
}

this->markCachedImageAsDirty();</span><br></div><span style="white-space:pre">--------------------------------------------------------
</span><br>But it doesn't work...<br><br>Thanks<br>-Simon<br><br><div class="gmail_extra"><br><div class="gmail_quote">2014-05-31 19:15 GMT+02:00 Waldo Valenzuela <span dir="ltr"><<a href="mailto:waldo.valenzuela@hotmail.com" target="_blank">waldo.valenzuela@hotmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Guys,<br>
<br>
I figure out what is the problem, I was testing the program in a macbook retina, and the QVTKWidget is not checking the pixel ratio.<br>
<br>
I had to modified the resize function on my child function of QVTKWidget.<br>
<br>
Best regards,<br>
<br>
Waldo.<br>
<div class="HOEnZb"><div class="h5"><br>
On 31 May 2014, at 00:37, Waldo Valenzuela <<a href="mailto:waldo.valenzuela@hotmail.com">waldo.valenzuela@hotmail.com</a>> wrote:<br>
<br>
> Hi Guys,<br>
><br>
> I compiled VTK 6.1.0 with Qt 5.3, and I compiled the vtk example <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUIMultipleInheritance" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUIMultipleInheritance</a>,<br>
><br>
><br>
> and I have a problem when I resize the main window, seems that the render resize of QVTKWidget is not called.<br>
><br>
> Any ideas about this problem?<br>
><br>
><br>
> Best regards,<br>
><br>
><br>
> Waldo.<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>
><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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>------------------------------------------------------------------<br>Simon Esneault<div>Rennes, France<br>------------------------------------------------------------------</div></div></div></div>
</div></div>