Go to the documentation of this file.00001 #include <QApplication>
00002
00003 #include "DGVTableVTK.h"
00004
00005 int main(int argc, char *argv[])
00006 {
00007 QApplication app(argc,argv);
00008 DGVTableVTK table;
00009
00010 QString filename = QFileDialog::getOpenFileName(&table,
00011 QObject::tr("Select File to Open"),
00012 ".",
00013 QObject::tr("CSV Files (*.csv)"));
00014
00015 if(!table.loadCSV(filename))
00016 {
00017 cerr << "Error Loading file" << endl;
00018 return EXIT_FAILURE;
00019 }
00020
00021 table.adjustSize();
00022 table.show();
00023
00024 return app.exec();
00025 }