Qt的QVariant类中被禁止的枚举GlobalColor、BrushStyle、PenStyle和CursorShape
在Qt的qvariant.h中有这样一段话:// These constructors don't create QVariants of the type associcated// with the enum, as expected, but they would create a QVariant of// type int with the value of the enum value.// Use QVariant v = QColor(Qt::red) instead of QV