how to get path of current directory in Qt
Unsolved
General and Desktop
-
I have have file in current directory
I have file
/a/b/c/dI Ineed to form a path
/a/b/e/fhow to do that
and how to get the path of currect directoty
-
Hi
"I have file
/a/b/c/d"
That looks a bit more like a path ?
is d the file ?There is
QDir::currentPath()
amount others. -
I have have file in current directory
I have file
/a/b/c/dI Ineed to form a path
/a/b/e/fhow to do that
and how to get the path of currect directoty
@Qt-Enthusiast
See the QDir and QFile docsand how to get the path of currect directoty
QDir::current(), or do you mean of the executable?
FOr the executable see QCoreApplication::applicationDirPath()