#include "vue.hpp" fenetre::fenetre() : QWidget() { m_layoutV = new QVBoxLayout; m_view = new QTreeView; m_donnees << "France" << "Epsagne" << "Portugal" << "Japon"; m_model = new QStringListModel(m_donnees); m_view->setModel(m_model); m_layoutV->addWidget(m_view); setLayout(m_layoutV); }