you can get data from a model in QVariant object and then you can use QVariant::toDate method.