Qt QListWidgetItem Multiple Lines
I have a really simple QListWidget object and I want to build a folder list. When I add an item to my list here is what I do : void LessCC::on_addFolderButton_clicked() { QString dirName = QFileDialog::getExistingDirectory(this, tr("Choose Directory"), QDir::homePath(), QFileDialog::ShowDirsOnly); QListWidgetItem* newItem = new QListWidgetItem(QIcon(":/resources/icons/folder.png"), dirName, 0, 0); this->ui->folderListWidget->addItem(newItem); } This is working but I want my items to have multiple lines or column of informations (with different style). I heard about the QStyledItemDelegate but