<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 14pt; color: #000000"><div>Hi all,<br> <br> I am having troubles with the following example using QVTKWidget.<br> <br> Windows 7 sp1 64 bits<br> I am using :<br> Qt 5.4 (msvc2013_64_opengl)<br> VS2013<br> vtk 6.1 (64 bits compiled with vs2013)<br> <br> When compiling and executing 64 bits version, I get this error message "Invalid pixel format, no opengl support" and app is exiting.<br> In order to get the error message, just uncomment the line in the example code.<br> <br> When I use 32 bits version (qt 4.8.6 ! vtk 6.1.0), i don't have any problems.<br> <br> I don't know if the problem is about 64 bits or qt5.<br> <br> If someone can provide explanations... :)<br> <br> <br> #include <QApplication><br> #include <QMainWindow><br> <br> #include <QVTKWidget.h><br> <br> #include <vtkRenderWindow.h><br> #include <vtkRenderer.h><br> <br> int main(int argc, char **argv)<br> {<br> QApplication app(argc, argv);<br> <br> QMainWindow *mainWindow = new QMainWindow;<br> mainWindow->setWindowTitle("Mainwindow");<br> mainWindow->setFixedSize(640, 360);<br> <br> QVTKWidget *widget = new QVTKWidget;<br> //widget->GetRenderWindow()->Render();<br> mainWindow->setCentralWidget(widget);<br> widget->GetRenderWindow()->Render();<br> mainWindow->show();<br> return app.exec();<br> }<br> <br> I simplified the example and deleted the printing of "Hello world" because it changes nothing.<br> <br> Thanks for any help.<br> </div></div></body></html>