The "odd thing" you mention is C++ making fun of you with its implicit conversions from any enum type to int. Notice that qDebug prints "QVariant(int, 4)". I hate them implicit conversions. -- André Fillipe