QVariant assignment (-Wclazy-qt6-deprecated-api-fixes)
The following code gives warning:
QVariant variant;
QString string;
variant = string;
Warning:
warning: operator does not exist in Qt6. Using QVariant::compare() instead [-Wclazy-qt6-deprecated-api-fixes]
Is this a bug?
I'm compiling with Qt dev branch and it does compile and work.
Changing it setValue instead does not produce the warning:
variant.setValue(string);
clazy version: 1.9 clang version: 12.0.0