Yeah, but more like this:

Qt Code:
  1. #include <QtApplication>
  2. #include "mainwindow.h" // own mainwindow subclass of QMainWindow with designed interface
  3. #include <QVTKWidget.h> // or whatever you need to include for this
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7. QApplication app(argc,argv);
  8.  
  9. MainWindow mainWindow;
  10.  
  11. QVTKWidget *widget = new QVTKWidget(&mainWindow);
  12. mainWindow.setCentralWidget(widget);
  13.  
  14. mainWindow.show();
  15. return app.exec();
  16. }
To copy to clipboard, switch view to plain text mode 

But i always get a "symbol(s) not found" and "collector2 Id" error message, if i tryout... I guess those are standard include error messages from c++ compiler, but i don't know yet why. i think i'll have to work on it.