Jump to content

Frameworks/Qt6 Porting Notes

From KDE Community Wiki
Revision as of 16:58, 22 January 2022 by Ahmad Samir (talk | contribs) (Created page with "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 <code>QVaria...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 use QVariant()
    • 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 constructed QVariant and false otherwise, it doesn't pertain to the underlying type stored in QVariant. See this for more details