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. How is this done?

How is this done?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
11 Posts 4 Posters 1.4k 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by
    #1
    This post is deleted!
    jsulmJ T 2 Replies Last reply
    0
    • SPlattenS SPlatten

      This post is deleted!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @SPlatten Shouldn't a grep (search) for "totalWaterDepth" point you to the location where it is implemented?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      SPlattenS 1 Reply Last reply
      1
      • jsulmJ jsulm

        @SPlatten Shouldn't a grep (search) for "totalWaterDepth" point you to the location where it is implemented?

        SPlattenS Offline
        SPlattenS Offline
        SPlatten
        wrote on last edited by
        #3
        This post is deleted!
        JoeCFDJ 1 Reply Last reply
        0
        • SPlattenS SPlatten

          This post is deleted!

          JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by
          #4
          This post is deleted!
          SPlattenS 1 Reply Last reply
          0
          • JoeCFDJ JoeCFD

            This post is deleted!

            SPlattenS Offline
            SPlattenS Offline
            SPlatten
            wrote on last edited by
            #5
            This post is deleted!
            JoeCFDJ 1 Reply Last reply
            0
            • SPlattenS SPlatten

              This post is deleted!

              JoeCFDJ Offline
              JoeCFDJ Offline
              JoeCFD
              wrote on last edited by JoeCFD
              #6

              @SPlatten Give you one example:
              qmlRegisterType< ProxyModelNoneEntry >( "isp", 1, 0, "ProxyModelNoneEntry" );

              the C++ class is defined here.

              #include <QSortFilterProxyModel>
              
              class ProxyModelNoneEntry : public QSortFilterProxyModel
              {
                  Q_OBJECT
              }
              

              in my qml class ProxyModelNoneEntry is used.

              import isp 1.0
                  {
                      ComboBox {
                          id: nameComboBox
                          x: 0
                          y: 0
                          model: ProxyModelNoneEntry {
                              sourceModel: nameListModel
                          }
                  }
              
              1 Reply Last reply
              0
              • JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by
                #7

                https://doc.qt.io/qt-5/qtqml-cppintegration-topic.html

                SPlattenS 2 Replies Last reply
                0
                • JoeCFDJ JoeCFD

                  https://doc.qt.io/qt-5/qtqml-cppintegration-topic.html

                  SPlattenS Offline
                  SPlattenS Offline
                  SPlatten
                  wrote on last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • SPlattenS SPlatten

                    This post is deleted!

                    T Offline
                    T Offline
                    Tauqueer
                    wrote on last edited by
                    #9

                    Hi @SPlatten, as per my understanding totalWaterDepth is some Q_PROPERTY of a cpp class and qml uses the object of that particular class clubbed with . to access it.

                    SPlattenS 1 Reply Last reply
                    0
                    • T Tauqueer

                      Hi @SPlatten, as per my understanding totalWaterDepth is some Q_PROPERTY of a cpp class and qml uses the object of that particular class clubbed with . to access it.

                      SPlattenS Offline
                      SPlattenS Offline
                      SPlatten
                      wrote on last edited by
                      #10
                      This post is deleted!
                      1 Reply Last reply
                      0
                      • JoeCFDJ JoeCFD

                        https://doc.qt.io/qt-5/qtqml-cppintegration-topic.html

                        SPlattenS Offline
                        SPlattenS Offline
                        SPlatten
                        wrote on last edited by SPlatten
                        #11
                        This post is deleted!
                        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