Talking about wisdom : I deem it's particularly unwise to create a new file using a modified version of qmake to then read it from your app. A much smarter way (though maybe a little more complicated at first) would be to embed qmake's sources and to create a new entry point to it (i.e. drop the main() since you can't have two main() in a single app and also because it's not a very convenient interface within an app... for instance replace argc and argv by a QStringList and instead of writing to a file return the data through a custom memory structure (possibly even from the already setup QMakeProject object...)
As for the completion it appears that the problem with --fields comes from the bin shipped with my distro which appears to be etags actually and has a slightly different CLI... I'll try to install a proper version and check if it is really as fast as you claim![]()
Bookmarks