See how it goes, I have a pushButton and a lineEdit. When the pushbutton is clicked a FileDialog::getOpenFileNames pop-ups, then I want to put the files selected into the lineEdit:
path
= QFileDialog::getOpenFileNames(this, tr
("Files & Directories"),
QDir::currentPath(), tr
("All files *.*") );
int x = path.length();
// ui->lineEdit_6->setText(path[x] + ", " + path[x-1); [B]?????????[/B]
path = QFileDialog::getOpenFileNames(this, tr("Files & Directories"), QDir::currentPath(), tr("All files *.*") );
int x = path.length();
// ui->lineEdit_6->setText(path[x] + ", " + path[x-1); [B]?????????[/B]
To copy to clipboard, switch view to plain text mode
I have the number of files selected but idk exactly how to put them into the lineedit...
Bookmarks