[Interest] find executable in Qt 4.8
freekee1 at gmx.de
Wed Oct 12 13:14:38 CEST 2016
I don't know about anything alike in Qt4, but reading the docs it seems
quite straightforward and not too much work to implement that function
Of course, it depends on how to detect "executables". By name, maybe
trying out extensions (like ".exe", ".bat", ".cmd" on Windows) would be
easy and fast (regarding performance). Parsing the file (or just
checking the magic number) header might be some more work (and be
somewhat slower) I guess.
Only thing requiring more effort, as I imagine, might be to
differenciate many platforms or ones very different from the "common"
ones (Windows, Linux, etc.).
On 11.10.2016 22:30, Alexander Semke wrote:
> in Qt5 we have http://doc.qt.io/qt-5/qstandardpaths.html#findExecutable . Is
> there something similar available in Qt 4.8, too? Can somebody point me to the
> proper static function?
> Interest mailing list
> Interest at qt-project.org
More information about the Interest