コード例 #1
0
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    QtTreeWidgetNG widget;
    widget.controller()->setModel(new Test(&widget));
    widget.resize(QSize(240, 320));
    widget.show();
    return app.exec();
}
コード例 #2
0
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QFileSystemModel dir;
    dir.setRootPath("/");
    QtTreeModelAdaptor adaptor(&dir);

    QtTreeWidgetNG widget;
    widget.controller()->setModel(&adaptor);
    widget.show();

    return app.exec();
}