Yeah, but more like this:
#include <QtApplication>
#include "mainwindow.h" // own mainwindow subclass of QMainWindow with designed interface
#include <QVTKWidget.h> // or whatever you need to include for this
int main(int argc, char *argv[])
{
MainWindow mainWindow;
QVTKWidget *widget = new QVTKWidget(&mainWindow);
mainWindow.setCentralWidget(widget);
mainWindow.show();
return app.exec();
}
#include <QtApplication>
#include "mainwindow.h" // own mainwindow subclass of QMainWindow with designed interface
#include <QVTKWidget.h> // or whatever you need to include for this
int main(int argc, char *argv[])
{
QApplication app(argc,argv);
MainWindow mainWindow;
QVTKWidget *widget = new QVTKWidget(&mainWindow);
mainWindow.setCentralWidget(widget);
mainWindow.show();
return app.exec();
}
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.
Bookmarks