graciano
5th August 2009, 13:08
Hi,
This code gives me the full filename:
QString usersfilename = QFileDialog::getOpenFileName(this,
"Select source file",
".",
"Text files (*.txt);; All files (*.*)");
ui->users_filename->setText(usersfilename);
Is there a function to get the filename without the full path?
Thanks
This code gives me the full filename:
QString usersfilename = QFileDialog::getOpenFileName(this,
"Select source file",
".",
"Text files (*.txt);; All files (*.*)");
ui->users_filename->setText(usersfilename);
Is there a function to get the filename without the full path?
Thanks