[Qt-interest] QFileSystemModel doesn't show anything
Eckhard Jokisch
e.jokisch at orange-moon.de
Mon Jun 1 08:20:24 CEST 2009
Hi,
the followig code just presents an empty treeview and I can't figure out why.
The same done with QDirModel works just fine. What can I do?
Eckhard
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent), ui(new Ui::MainWindowClass)
{
ui->setupUi(this);
QFileSystemModel fsm;
ui->treeView->setModel(&fsm);
ui->treeView->setRootIndex(fsm.index("/home/eckhard"));
...
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090601/394acf45/attachment.html
More information about the Qt-interest-old
mailing list