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. What is __panel

What is __panel

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 1.2k Views
  • 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.
  • T Offline
    T Offline
    Tarostar
    wrote on last edited by
    #1

    I'm working on a QtQuick (QML) project and I keep seeing references to __panel in code samples, but google, etc. has not helped me find out what __panel refers to.

    I would guess that the double underscore means it is some sort of prototype member or similar, but what is __panel. Explanations and pointers to documentation appreciated.

    Thanks.

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

      Properties with two underscores i.e "__" are internal properties of that component and should generally be avoided. As those can be removed/changed in future implementations.

      157

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Tarostar
        wrote on last edited by
        #3

        Ok, thank you.

        Now I understand what the various "__" values in the Digia code on gitorious refer to.

        I guess if I were to search through the source I would find these values defined somewhere in C++ using "Q_PROPERTY()":http://qt-project.org/doc/qt-5/properties.html, or in QML using object->setProperty or ["default] property <propertyType> <propertyName>":http://qt-project.org/doc/qt-5/qtqml-syntax-objectattributes.html#property-attributes.

        1 Reply Last reply
        0
        • p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          Mostly they could be in the QML itself like:
          @
          property int __myProperty: 6
          @

          BTW, where did you see __panel ?

          157

          1 Reply Last reply
          0
          • T Offline
            T Offline
            Tarostar
            wrote on last edited by
            #5

            "https://qt.gitorious.org/qt/qtquickcontrols/source/1ac885f99c15c2bf9859df483048bfa6b68b15f3:src/controls/TextField.qml":https://qt.gitorious.org/qt/qtquickcontrols/source/1ac885f99c15c2bf9859df483048bfa6b68b15f3:src/controls/TextField.qml

            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