[Solved]How to diffetentiate relative and absolute path
General and Desktop
2
Posts
1
Posters
594
Views
1
Watching
-
wrote on 5 May 2014, 07:47 last edited by
Hi,
I have a function with QString as parameter. I am expecting file path in that QString.
my question is , can i detect whether that path is relative or absolute?
eg. relative path "someFolder/subFolder/abc.jpg"
absolute path "C:/Desktop/someFolder/subFolder/abc.jpg".
Is there something like isRelative() or isAbsolute()? -
wrote on 5 May 2014, 07:57 last edited by
oh .. I just found it . Yes there are functions isAbsolute() and isRelative() in QfileInfo class.
1/2