Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QML signal problem



  • 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.



  • Never mind.
    It is working now, don't know what happened (I did "clean", and then "build" in both DLL and application).


Log in to reply