I took this example:
https://felgo.com/doc/felgo-appdemos-cpp-qml-integration-example/
and added a Navigation menu like
App {
Page {
id: mainPage
title: qsTr("Example of C++ Integratation")
visible: true
Navigation {
id: navigation
NavigationItem {
title: qsTr("Page 1")
icon: IconType.list
// NavigationStack
NavigationStack {
initialPage: Page1 { }
} // end NavigationStack
} // end NavigationItem
NavigationItem {
title: qsTr("Page 2")
icon: IconType.calculator
// NavigationStack
NavigationStack {
initialPage: Page2 { }
} // end NavigationStack
} // end NavigationItem
} // end Navigation
} // end Page
} // end App
I get the error:
qrc:/qml/VPlayApps/navigation/NavigationItem.qml:243:5: QML Icon: Cannot anchor to an item that isn’t a parent or sibling.
qrc:/qml/VPlayApps/controls/Icon.qml:70:3: QML QQuickText: Cannot anchor to an item that isn’t a parent or sibling.
It crashes when I run the debug run, not Live.
Page1 and Page2 look like:
import Felgo 3.0
import QtQuick 2.0
Page {
id: page1
title: qsTr("Page 1")
} // end Page
Shadow build on or off id not help.
Thanks for any help