I get now what You want to do.
So You need to do an extra work to get this to work the way you want it to.
First:
fileDialog
->open
( this,
SLOT(slotSel
(QString)) );
QFileDialog *fileDialog = new QFileDialog;
fileDialog->setFileMode( QFileDialog::AnyFile );
fileDialog->open( this, SLOT(slotSel(QString)) );
To copy to clipboard, switch view to plain text mode
then declare slot i.e. slotSel(QString). This will bring a QT FileDialog, not the SYSTEM!.
When You type i.e. 1 full path will be returned in slot
i.e.:
void MainWindow
::slotSel( QString fileNameAndPath
) {
qDebug() << fileNameAndPath;
}
void MainWindow::slotSel( QString fileNameAndPath)
{
qDebug() << fileNameAndPath;
}
To copy to clipboard, switch view to plain text mode
And here You can do whatever You want with the string path.
Bookmarks