Go to the documentation of this file.00001 #include <QApplication>
00002
00003 #include "DGVTable.h"
00004
00005 int main(int argc, char *argv[])
00006 {
00007 QApplication app(argc,argv);
00008 DGVTable 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.resizeColumnsToContents();
00022 Table.adjustSize();
00023 Table.show();
00024
00025 return app.exec();
00026 }