Currently A a; QVariant::fromValue(&a).value<const A*>() == nullptr; Still casting non const to const is safe, and worked in Qt5. After this change A a; QVariant::fromValue(&a).value<const A*>() == &a; Change-Id: I257049d084c712b00a338a2943d379aa478e0981 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> |
||
|---|---|---|
| .. | ||
| stream | ||
| .gitignore | ||
| CMakeLists.txt | ||
| qvariant.pro | ||
| qvariant.qrc | ||
| tst_qvariant.cpp | ||