Convert QString to a QString pointer? I have this method that returns a Qstring
QString Redis:test()
{
return (QString) "Im Testing"
}
Called in a class that needs to assign the returning value to a pointer
QString* Test::connectRedis()
{
Redis* db = new Redis(this);
QString* testing = db->test();
return testing;
}
The error Im getting :
error: no viable conversion from 'QString' to 'QString *'
Aucun commentaire:
Enregistrer un commentaire