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(
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
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; {}