Re: [Interest] QQmlEngine: Illegal attempt to connect to PlatformShim(0xb9b2fb58) that is in a different thread than the QML engine QQmlApplicationEngine(0xa17e1494.

2016-12-06 Thread Jason H
I'm still stuck. I don't know how to do this. To recap: main.cpp make a singleton called platformShim and adds it as a property to the QQmlEngine. Then later when trying to use a Connections element to provide a signal handler I am told QQmlEngine: Illegal attempt to connect to PlatformShim(

Re: [Interest] QQmlEngine: Illegal attempt to connect to PlatformShim(0xb9b2fb58) that is in a different thread than the QML engine QQmlApplicationEngine(0xa17e1494.

2016-12-02 Thread Kristoffersen, Even (NO14)
The singleton one requires QML to be able to create the instance and own it doesn't it? I'd switch to qmlRegisterUncreatableType() -Even -Original Message- From: Interest [mailto:interest-bounces+even.kristoffersen=honeywell@qt-project.org] On Behalf Of Jason H Sent: 1. desember

Re: [Interest] QQmlEngine: Illegal attempt to connect to PlatformShim(0xb9b2fb58) that is in a different thread than the QML engine QQmlApplicationEngine(0xa17e1494.

2016-12-01 Thread Jason H
Still having issues... But made some "progress" So I changed to using qmlRegisterSingletonType("PlatformSupport", 1, 0 "PlatformShim", ) However when I do I get 1 of 2 errors: 1. Element is not creatable: when trying to declare a signal handler like PlatformShim { onPushNotificationReceived; {}