Hello !
I’m starting to discover the Qt Model : QdirModel;
the problem is that i get no display of the discs or anything
#include "window.h"
#include <QtGui>
Window::Window(QWidget *parent) :
QMainWindow(parent)
{
QVBoxLayout *layout = new QVBoxLayout;
QDirModel *modele = new QDirModel(this);
QTreeView *vue = new QTreeView;
vue->setModel(modele);
layout->addWidget(vue);
setLayout(layout);
}
any ideas about the source of the problem ? thanks a lot
↧