jeudi 8 août 2019

Shared pointer to QString

I am working in a larger code base and there is a preexisting function that returns a shared pointer to a location that holds a value I need. The final type I am trying to reach is a QString.

I have tried the following:

freq = QString::fromStdString(emitter->getFreqData().get().toString());

the get() method returns a pointer to the data and I have not been able to turn it into a string.

Any help or suggestions with getting the shared pointer from

emitter->getFreqData()

to a string would be greatly appreciated:)

Aucun commentaire:

Enregistrer un commentaire