OverviewFelgo 2 Support (Qt 5) › Connections: Cannot assign to non-existent property "onPageChanged"

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #18682



    I am getting error on loader connection as:

    /Users/ntms/Library/Application Support/Felgo Live Client/myComponent/qml/Main.qml:16: <b>QML Connections: Cannot assign to non-existent property “onPageChanged”</b>


    import Felgo 3.0
    import QtQuick 2.10
    import "mainui"
    App {
        id: rootApp
        signal pageChanged(int page);
        Loader {
            anchors.fill: parent
            source: "mainui/Page1.qml"
            Connections {
                target: rootLoader.item
                onPageChanged: {
                        case 1: rootLoader.source = "mainui/Page1.qml"; break;
                        case 2: rootLoader.source = "mainui/Page2.qml"; break;
    } // APP




    Hi Niyazi,
    I am a little confused on which signal are you trying to listen to.
    From code it looks like you want to react when mainui/Page1.qml or Page2.qml is changed.
    But you are listening to Page1.qml signal pageChanged.
    Are you sure that Page1.qml and Page2 send signal pageChanged?
    What type of object Page1/2.qml is?

    I see you added custom signal to your app pageChanged.
    If you want to react to that signal, in your Connections the target, should be: target: rootApp.


Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support