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. List available QML imports

List available QML imports

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 3 Posters 934 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.
  • M Offline
    M Offline
    Mark81
    wrote on last edited by
    #1

    Is there a way (under Linux) to list all available QML imports modules? I mean on the target file system, not in QtCreator.

    raven-worxR 1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      There is nothing exist check like this.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      1
      • M Mark81

        Is there a way (under Linux) to list all available QML imports modules? I mean on the target file system, not in QtCreator.

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        @Mark81
        you could traverse the (sub-)folders in <QTDIR>/qml and check the .qmltypes files.
        At the very beginning the have a comment with contains something like

        // This file was auto-generated by:
        // 'qmlplugindump -nonrelocatable QtQuick 2.11'
        

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        M 1 Reply Last reply
        0
        • raven-worxR raven-worx

          @Mark81
          you could traverse the (sub-)folders in <QTDIR>/qml and check the .qmltypes files.
          At the very beginning the have a comment with contains something like

          // This file was auto-generated by:
          // 'qmlplugindump -nonrelocatable QtQuick 2.11'
          
          M Offline
          M Offline
          Mark81
          wrote on last edited by
          #4

          @raven-worx There are no *.qmltypes file in the target:

          #cd /
          #find -name *.qmltypes
          #
          

          and also a search for qml returns just the qtopia examples:

          # find -name qml
          ./usr/bin/qtopia/examples/declarative/animation/states/qml
          ./usr/bin/qtopia/examples/declarative/animation/easing/qml
          ./usr/bin/qtopia/examples/declarative/animation/basics/color-animation/qml
          ./usr/bin/qtopia/examples/declarative/animation/basics/property-animation/qml
          ./usr/bin/qtopia/examples/declarative/animation/behaviors/behavior-example/qml
          ./usr/bin/qtopia/examples/declarative/ui-components/scrollbar/qml
          ./usr/bin/qtopia/examples/declarative/ui-components/progressbar/qml
          ...
          
          raven-worxR 1 Reply Last reply
          0
          • M Mark81

            @raven-worx There are no *.qmltypes file in the target:

            #cd /
            #find -name *.qmltypes
            #
            

            and also a search for qml returns just the qtopia examples:

            # find -name qml
            ./usr/bin/qtopia/examples/declarative/animation/states/qml
            ./usr/bin/qtopia/examples/declarative/animation/easing/qml
            ./usr/bin/qtopia/examples/declarative/animation/basics/color-animation/qml
            ./usr/bin/qtopia/examples/declarative/animation/basics/property-animation/qml
            ./usr/bin/qtopia/examples/declarative/animation/behaviors/behavior-example/qml
            ./usr/bin/qtopia/examples/declarative/ui-components/scrollbar/qml
            ./usr/bin/qtopia/examples/declarative/ui-components/progressbar/qml
            ...
            
            raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by raven-worx
            #5

            @Mark81
            did you compile Qt yourself? or are you using a prebuilt package?
            But anyway, why do you have qtopia installed?!

            For example i am talking about a path such as (may be different on your system): /usr/lib/qt/5.10/qml/QtQuick.2/ (in there is a plugins.qmltypes)

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            M 1 Reply Last reply
            0
            • raven-worxR raven-worx

              @Mark81
              did you compile Qt yourself? or are you using a prebuilt package?
              But anyway, why do you have qtopia installed?!

              For example i am talking about a path such as (may be different on your system): /usr/lib/qt/5.10/qml/QtQuick.2/ (in there is a plugins.qmltypes)

              M Offline
              M Offline
              Mark81
              wrote on last edited by
              #6

              @raven-worx It's a commercial device. I cannot customize it (easily).
              It just accepts qml files in a specified folder to be shown on startup.
              Of course I didn't build Qt by myself otherwise I would know what modules I've compiled :)

              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