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. Harmattan Qt Components: "import com.nokia.meego 1.0" or "import com.meego 1.0" ?
Forum Update on Monday, May 27th 2025

Harmattan Qt Components: "import com.nokia.meego 1.0" or "import com.meego 1.0" ?

Scheduled Pinned Locked Moved QML and Qt Quick
17 Posts 7 Posters 10.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.
  • A Offline
    A Offline
    awiese2007
    wrote on last edited by
    #5

    I am getting the same error message when changing from "import com.meego 1.0" to "import com.nokia.meego 1.0"...the related lines of code are:

    @ ToolIcon {
    platformIconId: "toolbar-add";
    onClicked: pageStack.push(Qt.resolvedUrl("AddPage.qml"));
    }@

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qgil
      wrote on last edited by
      #6

      fwiw I'm using

      @import com.meego 1.0

      ...

      iconId: "toolbar-add"@

      And yes, the hobbyist developer in me is also confused. :)

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Kypeli
        wrote on last edited by
        #7

        FWIW is ended up using only "import com.meego 1.0" and I forgot about this issue altogether. But it's still confusing.

        I can guess this is related to the fact that the device has an older version of Qt Components (1.0) while we are looking at the source of QmlComponentsGallery that uses a newer version of it (1.1). It would be nice to get a comment from someone who knows what's going on, but I think we just have to wait for the final release of Harmattan SDK and an update for the N950 with Qt Components 1.1.

        1 Reply Last reply
        0
        • kkoehneK Offline
          kkoehneK Offline
          kkoehne
          Moderators
          wrote on last edited by
          #8

          Both com.meego and com.nokia.meego work on the device, and AFAIK there is no difference between them functionality-wise. However, you cannot mix the two namespaces in one application: You have to use just one all over the place, otherwise you get runtime errors. (The problem seems to be that both directories contain a copy of the same C++ library, while only one library can be loaded at runtime.)

          In the end we settled on com.nokia.meego, and I fixed the wizard for Qt Creator 2.3 accordingly. I'm sorry for the confusion, I personally learned about the com.nokia.meego namespace just a few days ago.

          Director R&D, The Qt Company

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            qgil
            wrote on last edited by
            #9

            So... for those of us developing Harmattan apps as we speak: should we move to

            @import com.nokia.meego 1.0@

            in order to be on the safe side?

            1 Reply Last reply
            0
            • kkoehneK Offline
              kkoehneK Offline
              kkoehne
              Moderators
              wrote on last edited by
              #10

              Yes, I suggest using "com.nokia.meego 1.0" all over the place.

              Director R&D, The Qt Company

              1 Reply Last reply
              0
              • A Offline
                A Offline
                awiese2007
                wrote on last edited by
                #11

                But "com.nokia.meego 1.0" still gives the error the op and others experience...would be nice to get this issue solved before recommending folks moving to it...

                1 Reply Last reply
                0
                • kkoehneK Offline
                  kkoehneK Offline
                  kkoehne
                  Moderators
                  wrote on last edited by
                  #12

                  awiese2007, please make sure that you've really no import 'com.meego 1.0' any more in any .qml file used by your application (might also be qml import libraries). If the error is still there, please file a bug report with enough details to reproduce it.

                  Director R&D, The Qt Company

                  1 Reply Last reply
                  0
                  • Q Offline
                    Q Offline
                    qgil
                    wrote on last edited by
                    #13

                    "Change to com.nokia.meego made":https://gitorious.org/miniature/miniature/commit/4b04d58042935286ecca146b98fe830fcec61907 and indeed everything seems to work just like before. Thanks!

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      Kypeli
                      wrote on last edited by
                      #14

                      I get the following error if I use com.nokia.meego 1.0 as stated in my original post.

                      file:///usr/lib/qt4/imports/com/meego/PageStack.js:144: Error: Cannot assign QObject* to PageStack_QMLTYPE_24*

                      That one import line is the only change I do to trigger this. Any ideas why this would happen?

                      1 Reply Last reply
                      0
                      • kkoehneK Offline
                        kkoehneK Offline
                        kkoehne
                        Moderators
                        wrote on last edited by
                        #15

                        @Kypeli, I guess you use "com.meego 1.0" somewhere in your application, too. If you define the QML_IMPORT_TRACE environment variable before launching the application you should be able to see that.

                        Director R&D, The Qt Company

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          muthu005
                          wrote on last edited by
                          #16

                          if i import com.nokia.meego 1.0, i am getting error "Package not found". what shall i do?

                          1 Reply Last reply
                          0
                          • kkoehneK Offline
                            kkoehneK Offline
                            kkoehne
                            Moderators
                            wrote on last edited by
                            #17

                            WHen do you get the error? When running your app on the device, or in the Simulator? In case it's the latter, check that 'com.nokia.extras platform' is set to 'Harmattan' in the Simulator settings.

                            Director R&D, The Qt Company

                            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