Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 5.0.1
-
None
-
128c7dfbefb71523c064c0c221797d4f35a42213 (qt-creator/tqtc-qt-creator/5.0)
Description
The context help seem to prefer older Qt versions over newer ones.
That is, if one has both Qt 5.15 and Qt 6.2 installed, the context help is opened for Qt 5.15.
This is due to getBestLink in coreplugin/helpitem.cpp actually comparing version numbers as integers:
const int version = extractVersion(link.second).second; if (version > highestVersion) { highestVersion = version; bestLink = link; }
For Qt 5.15.0, the version is 5150 , which is bigger than 620 for Qt 6.2.0.