7 #include <Wt/WApplication> 8 #include <Wt/WContainerWidget> 10 #include <Wt/WTreeTableNode> 18 WApplication *app =
new WApplication(env);
19 app->setTitle(
"File explorer example");
20 app->useStyleSheet(
"filetree.css");
23 treeTable->resize(500, 300);
24 treeTable->tree()->setSelectionMode(ExtendedSelection);
25 treeTable->treeRoot()->setNodeVisible(
false);
26 treeTable->treeRoot()->setChildCountPolicy(WTreeNode::Enabled);
28 app->root()->addWidget(treeTable);
33 int main(
int argc,
char **argv)
WApplication * createApplication(const WEnvironment &env)
int main(int argc, char **argv)
A tree table that displays a file tree.