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. Using jquery instead of javascript with qml help
Forum Update on Monday, May 27th 2025

Using jquery instead of javascript with qml help

Scheduled Pinned Locked Moved QML and Qt Quick
8 Posts 6 Posters 14.6k 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.
  • D Offline
    D Offline
    doforumda
    wrote on 21 Nov 2010, 14:01 last edited by
    #1

    hi
    i want to know can we use jquery library with qml? I mean to ask that when i want to access data for example from xml file or any other thing, i can use XMLHttpRequest. but what i i want to use jquery library function like $.ajax().

    thanks

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Kxyu
      wrote on 21 Nov 2010, 16:31 last edited by
      #2

      I don't think it's actually possible, but you can try to extract functions and objects you need

      1 Reply Last reply
      0
      • D Offline
        D Offline
        doforumda
        wrote on 22 Nov 2010, 09:58 last edited by
        #3

        how is it possible to extract functions and object? I mean how can i do this?

        1 Reply Last reply
        0
        • K Offline
          K Offline
          Kxyu
          wrote on 22 Nov 2010, 11:08 last edited by
          #4

          well it's actually can be complicated
          you should look up what you need in jquery source and copypaste it to a new js file. you may need to remove some code, special for web, for example DOM refernces etc. also i doubt that $ will work

          1 Reply Last reply
          0
          • I Offline
            I Offline
            imxiangpeng
            wrote on 23 Nov 2010, 00:38 last edited by
            #5

            In qml, you can access C++ coding, you can achieve the purpose using C++

            1 Reply Last reply
            0
            • R Offline
              R Offline
              reedwine
              wrote on 8 Aug 2011, 04:14 last edited by
              #6

              so then we can use c++ code to read jquery lib correct?
              any tutorial about this?
              thanks before

              1 Reply Last reply
              0
              • D Offline
                D Offline
                DenisKormalev
                wrote on 8 Aug 2011, 08:47 last edited by
                #7

                jQuery is browser-oriented js library. I really doubt that it is possible to port it to qml. You can use c++ not to use jquery, but to implement similar methods in c++ and use them in qml.

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  peppelorum
                  wrote on 25 Nov 2011, 13:38 last edited by
                  #8

                  I just finished a small library so I don't have to handcraft all my ajax requests, you can find the library at https://github.com/peppelorum/ajaxmee
                  If you use it please let me know, if you find any bugs, please file a bug at github, or even better, fork it and pull request.

                  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