Frameworks/Qt6 Porting Notes
Appearance
In this page we aim to have a place to have a list of issues we face while porting/building the Frameworks to Qt6.
- Don't initialize a QVariant of QString with
QVariant(QString())
, instead useQVariant()
- In Qt5 QVariant::isNull() returned true if the value stored in it was null, i.e.
QVariant(QString()).isNull()
would return true. In Qt6 however the behavior has been made more consistent, i.e.QVariant::isNull()
returns true if this is a default constructedQVariant
and false otherwise, it doesn't pertain to the underlying type stored inQVariant
. See this for more details
- In Qt5 QVariant::isNull() returned true if the value stored in it was null, i.e.