When reading and comparing Qt5-docs and Qt6-docs, I read, that there are no differences in the functions! So it is not necessary to have the differentiation between the Qt-Versions. Code compiles without errors or warnings for Qt5 and Qt6.