That way, we have a fallback, but don't go on some convoluted search if it isn't necessary....
Even if we don't use QSysInfo, we can have a list of "known locations" that we search for first, again falling back to a more extensive search if nothing is found.
We can do some shortcutting by using QSysInfo (http:// doc.qt. digia.com/ 4.6/qsysinfo. html#WinVersion -enum) and then looking for a directory that *should* exist, following it up with a search if the expected dir wasn't found.
That way, we have a fallback, but don't go on some convoluted search if it isn't necessary....
Even if we don't use QSysInfo, we can have a list of "known locations" that we search for first, again falling back to a more extensive search if nothing is found.