Use QVariant for querying values