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 to import 3rd party js lib to qml
Forum Updated to NodeBB v4.3 + New Features

How to import 3rd party js lib to qml

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.5k 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
    maxim.prishchepa
    wrote on last edited by
    #1

    Hello All!
    I found perfect for me lib: "libphonenumber":https://code.google.com/p/libphonenumber/ and i'd like to use it in my project, written at qt+qml to mobile platform (android, iOS, etc), how can i include this lib to my qml, and then how to use that functionality?
    Tnx 4 answers.

    ps: Qt 5.2.1

    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lack
      wrote on last edited by
      #2

      Nice find!

      But man that is a lot of work porting that to Qt.
      Have you seen the c++ requirements? ICU, Protobuf, Boost(on windows only) All that and making interfaces to QML...

      And the js version is a diferent beast as well. All of that goog.require...
      If you wanna go down this JS path "the README":https://code.google.com/p/libphonenumber/source/browse/trunk/javascript/README is there for you. You're looking at ~300 kB .js file. Make sure it doesn't tie to browser environment though

      They said it is used in Android framework since ICS, is there no API from Android SDK available?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maxim.prishchepa
        wrote on last edited by
        #3

        Tnx a lot 4 answer!
        ok, but my app will be run at mac os, etc, where Android API will not be available, and what next?
        About C++ version, i think i can't use is

        so maybe some one know other libs or some service or something other solutions?

        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

        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