2015-05-22 15:56 GMT+02:00 mark diener <[email protected]>: > static QObject *singprovider(QQmlEngine *gengine, QJSEngine *gscriptEngine) > { > Q_UNUSED(gengine) > Q_UNUSED(gscriptEngine) > Sing* gsing = new Sing(); > return gsing; > }
Is the return value of the function cached in qt internally? Or will this just create a new "singleton" with every call? how about this: static Sing* gsing = new Sing(); -- Regards Samuel _______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
