Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Property Access In Designer

    QML and Qt Quick
    2
    2
    785
    Loading More Posts
    • 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.
    • S
      Sil20 last edited by

      Hi,
      I am currently developping an applycation base on QML component. I already developpe some compnents, on is called TPL. I am using:

      • QTQuick 1.1,
      • QTcreator 2.5.82
      • QT 4.8

      Inside this component there are many "Variable" defined as "Property int/real/string".
      I would like to only access some of them in the designer interface, because moste of them are only necessary internally.
      I would say something like Private and Public component. Can someone tell me how to do this??
      see the illustration of the designer below:
      !http://img339.imageshack.us/img339/8986/propertiesaccess.jpg(Designer interface)!

      1 Reply Last reply Reply Quote 0
      • _
        _rmn last edited by

        Hello,
        in qml private properties should begin with "__". This properties won't be shown in QML designer.
        See more here: http://doc.qt.digia.com/qt/qml-coding-conventions.html#private-properties

        1 Reply Last reply Reply Quote 0
        • First post
          Last post