Get the name of directory from the absloutepath
Hi
I have a very small problem
I am able to get the absolutepath of the directory using the QFileDialog::getExistingDirectory()
i.e
QString str = QFileDialog::getExistingDirectory();
returns
str = /root/Desktop/images
Now , how can I get the "images" from the string str
Re: Get the name of directory from the absloutepath
take a look at QString::split and use '/' as the separator
or you could use QString::section, again use '/' as the separator
both of these show nice examples on how to use them.
Re: Get the name of directory from the absloutepath