I have an issue after updating Qt from 5.14 to 6.3.0-rc in the compiler
-
The compiler used originaly was MSVC 2017-64 bit, the one used in Qt is MSVC 2019-64 bit. This "migration" has produced numerous errors that I honestly don't understand where they're coming from or what triggered them.
Thing is I don't know if I did something wrong when upgrading or if there is something missing. So what does someone typically do when they have a project and want to update Qt to a higher version to have access to the latest tools? I mean these errors weren't present before so what exactly triggered them?
-
A lot of those functions were deprecated in Qt5 and removed in Qt6. For the rest - add the appropriate includes.
See e.g. TextColorRole or qsrand(). -
@Kokoy said in I have an issue after updating Qt from 5.14 to 6.3.0-rc in the compiler:
like QStribg with the new ones that were made for Qt 6, correct?
I don't know what QStrigb is but yes - replace the deprecated functions with the correct ones.
You should have done this before upgrading to Qt6 though - Qt5.15 issued a warning for every deprecated function. -
For the recommended steps, see also the Porting to Qt 6 Guide. Most people report that the porting effort was small, but that of course depends a lot on your code base ...
Feel free to reach out here though if you have issues with specific cases!