Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

QML signal problem

$
0
0
Hi I have problem with signals in QML. I have QML file like this (which is in DLL file): //CustomItem.qml import QtQuick 2.0 Item {  signal mySignal()  onMySignal: console.debug("A")  ...  onSomething: mySignal() } Then I have another QML file (project) which imports DLL file above: //Extender.qml import mymodule 1.0 CustomItem {  onMySignal: console.debug("B") } ————————— Problem is that in my CustomItem signal never gets received (“B” never gets outputed, just “A”). Can anyone tell me what can cause that odd behavior? —————————— EDIT: I have noticed that I am not receiving original signals either (for example onXChanged) from QML file in DLL.

Viewing all articles
Browse latest Browse all 13965

Trending Articles