Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- viewList::viewList(){
- QString path="/home/myFolder";
- QListWidget *listwidget=new QListWidget;
- QVBoxLayout *vbox=new QVBoxLayout;
- foreach(QString file, files){
- listwidget->addItem(file);
- vbox->addWidget(listwidget);
- }
- this->setLayout(vbox);
- }
- class viewList : public QWidget{
- ///
- }
Add Comment
Please, Sign In to add comment