you can keep different type. you can declare type by using Q_DECLARE_METATYPE, in this case you can store your data in QVariant.