Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

QObject * as function parameter

$
0
0
Hi I need to pass QObjects like QString, QVariant or custom objects as parameters of functions: QString *str = new QString("Hello"); myClass.function(str); void Class::function(const QObject* obj){  QString *recoveredStr = (QString*)obj } How can I do this? Regards

Viewing all articles
Browse latest Browse all 18427

Trending Articles