Hi everyone,
I am working on the "Simple Tree Model" example. https://het.as.utexas.edu/HET/Softwa...treemodel.html
However, the data in my QTreeView is not being updated.
If somebody can tell that where I am making a mistake that would be great?
Qt Code:
#include <QMainWindow> #include <QtGui> #include <QTreeView> #include "treemodel.h" #include "mainwindow.h" #include "ui_mainwindow.h" , ui(new Ui::MainWindow) { ui->setupUi(this); TreeModel model(file.readAll()); file.close(); ui->treeView->setModel(&model); ui->treeView->setWindowTitle("Simple Tree Model"); setCentralWidget(ui->treeView); }To copy to clipboard, switch view to plain text mode
Capture.jpg
Bookmarks