Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

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 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>