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. Where to find?
Forum Updated to NodeBB v4.3 + New Features

Where to find?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
12 Posts 4 Posters 1.0k Views 2 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 SPlatten
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • SPlattenS SPlatten

      This post is deleted!

      SPlattenS Offline
      SPlattenS Offline
      SPlatten
      wrote on last edited by SPlatten
      #12
      This post is deleted!
      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #2

        Such imports (especially for a big project started a long time ago (before Qt 5.15 or Qt 6)) can mean 2 things:

        • somewhere there is a file (one or more) called qmldir which contains the definitions of all (or some) of those imports
        • somewhere in c++ (often in main.cpp, but can be elsewhere) there will be calls to register QML types https://doc.qt.io/archives/qt-5.12/qqmlengine.html#qmlRegisterType

        (Z(:^

        B SPlattenS 2 Replies Last reply
        1
        • sierdzioS sierdzio

          Such imports (especially for a big project started a long time ago (before Qt 5.15 or Qt 6)) can mean 2 things:

          • somewhere there is a file (one or more) called qmldir which contains the definitions of all (or some) of those imports
          • somewhere in c++ (often in main.cpp, but can be elsewhere) there will be calls to register QML types https://doc.qt.io/archives/qt-5.12/qqmlengine.html#qmlRegisterType
          B Offline
          B Offline
          Bob64
          wrote on last edited by
          #3

          @sierdzio apologies for the slight diversion, but what would be the modern (5.15/6) approach to this sort of import? I need to start learning about this stuff as I am going to be in the position of bringing a 5.9 project up to date soon - initially to 5.15 but ultimately to 6.x in the not too distant future.

          sierdzioS 1 Reply Last reply
          0
          • B Bob64

            @sierdzio apologies for the slight diversion, but what would be the modern (5.15/6) approach to this sort of import? I need to start learning about this stuff as I am going to be in the position of bringing a 5.9 project up to date soon - initially to 5.15 but ultimately to 6.x in the not too distant future.

            sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #4

            @Bob64 said in Where to find?:

            @sierdzio apologies for the slight diversion, but what would be the modern (5.15/6) approach to this sort of import? I need to start learning about this stuff as I am going to be in the position of bringing a 5.9 project up to date soon - initially to 5.15 but ultimately to 6.x in the not too distant future.

            I'm not an expert on that, still stuck on Qt 5.12 on my main project now :/
            But the new approach is more centered about new macros that automate this registration: https://doc.qt.io/qt-6/qtqml-cppintegration-definetypes.html#registering-an-instantiable-object-type

            See: QML_ELEMENT, QML_IMPORT_NAME etc.

            (Z(:^

            1 Reply Last reply
            1
            • sierdzioS sierdzio

              Such imports (especially for a big project started a long time ago (before Qt 5.15 or Qt 6)) can mean 2 things:

              • somewhere there is a file (one or more) called qmldir which contains the definitions of all (or some) of those imports
              • somewhere in c++ (often in main.cpp, but can be elsewhere) there will be calls to register QML types https://doc.qt.io/archives/qt-5.12/qqmlengine.html#qmlRegisterType
              SPlattenS Offline
              SPlattenS Offline
              SPlatten
              wrote on last edited by SPlatten
              #5
              This post is deleted!
              1 Reply Last reply
              1
              • JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by
                #6
                This post is deleted!
                SPlattenS 1 Reply Last reply
                1
                • JoeCFDJ JoeCFD

                  This post is deleted!

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

                      This post is deleted!

                      SPlattenS Offline
                      SPlattenS Offline
                      SPlatten
                      wrote on last edited by SPlatten
                      #9
                      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
                        #10
                        This post is deleted!
                        SPlattenS 1 Reply Last reply
                        2
                        • JoeCFDJ JoeCFD

                          This post is deleted!

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

                            This post is deleted!

                            SPlattenS Offline
                            SPlattenS Offline
                            SPlatten
                            wrote on last edited by SPlatten
                            #12
                            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