QVariant在Qt6.x中存储自定义类型时无需用户在使用Q_DECLARE_METATYPE进行注册

DesertCactus / 2024-12-29 / 原文

此图为Qt5.x中源码

此图为Qt6.x中源码