Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML Modules and singletons using intelisense
Qt 6.11 is out! See what's new in the release blog

QML Modules and singletons using intelisense

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qml
1 Posts 1 Posters 346 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GrahamLa
    wrote on last edited by
    #1

    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?

    Thanks

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved