Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [SOLVED] QML Extension plugin
Qt 6.12 LTS is out! See what's new in the release blog

[SOLVED] QML Extension plugin

Scheduled Pinned Locked Moved QML and Qt Quick
17 Posts 4 Posters 12.8k 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.
  • M Offline
    M Offline
    milot.shala
    wrote on last edited by
    #5

    [quote author="Aleksei Mikhailichenko" date="1293355369"]Milot, PieChart is QDeclarativeExtensionPlugin. Yo can go to $QTDIR/examples/declarative/tutorials/extending/chapter6-plugins and look on this example.

    Kxyu, I have installed qt-win-opensource-4.7.0-mingw.exe where all examples are already compiled. [/quote]

    Strange enough. I just tried compiling the example on Mac and it works!

    Also I was able to open the QML file with QMLViewer, can you try the same?

    !http://imgur.com/SIGni.png(pieexample)!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      a.v.mich
      wrote on last edited by
      #6

      i've tried example on vs2008 framework - and all works fine, but under mingw I have troubles with qml plugins loading

      1 Reply Last reply
      0
      • M Offline
        M Offline
        milot.shala
        wrote on last edited by
        #7

        [quote author="Aleksei Mikhailichenko" date="1293358756"]i've tried example on vs2008 framework - and all works fine, but under mingw I have troubles with qml plugins loading[/quote]

        Can you post the compiler error? The above error is QMLViewer error...

        1 Reply Last reply
        0
        • A Offline
          A Offline
          a.v.mich
          wrote on last edited by
          #8

          i do not compile this example, it was already compiled when i've installed qt.

          qmlviewer gave me follow output "file:///E:/progr/Qt/4.7.0/examples/declarative/tutorials/extending/chapter6-plugins/app.qml:45:5: PieChart is not a type
          PieChart {

               ^ "
          
          1 Reply Last reply
          0
          • A Offline
            A Offline
            a.v.mich
            wrote on last edited by
            #9

            With turning on QML_IMPORT_TRACE i recieve this

            @QDeclarativeImportDatabase::addToImport 0x10db4fec "." -1.-1 File as ""
            QDeclarativeImportDatabase::add: loaded "E:/progr/Qt/4.7.0/examples/declarative/tutorials/extending/chapter6-plugins/qmldir"
            QDeclarativeImportDatabase::importPlugin "E:.progr.Qt.4.7.0.examples.declarative.tutorials.extending.chapter6-plugins" from "E:/progr/Qt/4.7.0/examples/declarative/tutorials/extending/chapter6-plugins/lib/chapter6-plugins.dll"
            QDeclarativeImportDatabase::addToImport 0x10db4fec "Qt" 4.7 Library as ""
            QDeclarativeImportDatabase::resolveType "Item" = "QDeclarativeItem"
            file:///E:/progr/Qt/4.7.0/examples/declarative/tutorials/extending/chapter6-plugins/app.qml:45:5: PieChart is not a type
            PieChart {

                 ^ @
            
            1 Reply Last reply
            0
            • M Offline
              M Offline
              milot.shala
              wrote on last edited by
              #10

              Strange enough!

              Do you have contents (any lib, dll or something) under lib directory?

              Here I have .dylib library for Mac OS.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                a.v.mich
                wrote on last edited by
                #11

                yes - both - chapter6-plugins.dll and libchapter6-plugins.a

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  milot.shala
                  wrote on last edited by
                  #12

                  Strange again.

                  Maybe someone who faced the issue can help us here, I will try that on the meantime on Windows.

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    a.v.mich
                    wrote on last edited by
                    #13

                    thnx, i will try to built 4.7 branch from gitorious and look plugin loading there

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      milot.shala
                      wrote on last edited by
                      #14

                      [quote author="Aleksei Mikhailichenko" date="1293399772"]thnx, i will try to built 4.7 branch from gitorious and look plugin loading there[/quote]

                      That can work, and this is a bit an issue with not working examples, most of the developers are facing this issue which is also specified in "this article.":http://www.pluggd.in/nokia-qt-297/

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        a.v.mich
                        wrote on last edited by
                        #15

                        finally an example from the latest version of the library started. Thanks to all!

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          milot.shala
                          wrote on last edited by
                          #16

                          Good to hear that! Can you mark this thread as [SOLVED] ?

                          1 Reply Last reply
                          0
                          • ? Offline
                            ? Offline
                            A Former User
                            wrote on last edited by
                            #17

                            Nice post. I also run into this issue when i try this example

                            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
                            • Unsolved