diff options
Diffstat (limited to 'examples/tutorials/modelview/4_headers/modelview.cpp')
-rwxr-xr-x | examples/tutorials/modelview/4_headers/modelview.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/tutorials/modelview/4_headers/modelview.cpp b/examples/tutorials/modelview/4_headers/modelview.cpp new file mode 100755 index 0000000..39394da --- /dev/null +++ b/examples/tutorials/modelview/4_headers/modelview.cpp @@ -0,0 +1,14 @@ +#include <QTableView> +#include <QHeaderView> +#include "modelview.h" +#include "mymodel.h" + +ModelView::ModelView(QWidget *parent) + : QMainWindow(parent) +{ + tableView = new QTableView(this); + setCentralWidget(tableView); + tableView->setModel(new MyModel(this) ); + tableView->verticalHeader()->hide(); +} + |