QML Modules and singletons using intelisense

  • Hi
    I have a singleton module defined as

    pragma Singleton
    import QtQuick 2.0
    QtObject {
        property string homePageImage: "qrc:/images/HOME.jpg"
        property QtObject appSection: QtObject {
            property color labelColour: "green"
        // Toolbar
        property QtObject toolbar: QtObject {
            property string homeButtonImagePath: "qrc:/images/Home.svg"
            property string powerOffButtonImagePath: "qrc:/images/PowerOff.svg"

    When typing in the Qt Creator editor it will auto complete to IOSStyle->toolbar
    But not to the contents of toolbar.

    Is there a work around for this?


Log in to reply