browse into QUrl
-
-
Hi and welcome
If there is always at least 2 paths you could just split it to a list
QString input = your QUrl;
QStringList lines = input.split('/');
then you can get the parts using lines list.Not super elegant. but better than hardcore string manipulation :)
-
Just a note.
you can use c:/somepath/blabla in windows too :)
(from within Qt)But yes, you are correct, using seperator is needed for external coming paths.