[Solved] QFileDialog doesn't give file name , than the Entire path ?
-
This may be easy though, i couldn't find a way to get the file name alone than the full name using QFileDialog.
-
QFileInfo solved the problem :)
-
QFileDialog returns an entire path. You can use [[Doc:QFileInfo]] on that path to get any part of the file name you may require.
-
Yes, thank you.
[quote author="Andre" date="1311580894"]QFileDialog returns an entire path. You can use [[Doc:QFileInfo]] on that path to get any part of the file name you may require. [/quote]
-
Make use of QFileInfo.
Edit: Ignore this post as I didn't refresh the page to see the above posts.