Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
qmake. How to extract file name from the full path?
_Dima last edited by A Former User
Could you please advise how can I extract file name from the full path?
For example I need to get name of pro file, only file name, not full path
_Dima last edited by
I've found answer :)
There is also very useful "article":https://qt-project.org/doc/qt-5.1/qmake/qmake-function-reference.html
Eddy last edited by
Thanks for posting your solution here.
Could you edit your first post and add [solved] to it? Thanks!
ikyb last edited by
$$basename(anything)always returns empty string :(
So I use
SPEC = $$system(basename $$QMAKESPEC). Sure this will fail on windows.