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. [Solved] How to link QZXing?
Forum Updated to NodeBB v4.3 + New Features

[Solved] How to link QZXing?

Scheduled Pinned Locked Moved QML and Qt Quick
14 Posts 2 Posters 6.4k 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, i need QR code encoder/decoder which i can use at the Android/iOS. Will be supper if it will be possible to use at the QML
    I try to findout some solution to use QZXing lib, but almost all links lead to the Nokia site, and currently Microsoft don't support them any more :(

    is some one can explain how correct use this lib?
    as i understand, i should make static plugin from QZXing lib and static link this plugin to my app, is it correct?

    PS: or maybe someone know some other libs for encode/decode QR code?

    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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      IIRC, you only need to include the QZXing.pri in your own project to build it.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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

        [quote author="SGaist" date="1419282095"]Hi,

        IIRC, you only need to include the QZXing.pri in your own project to build it.[/quote]

        Tnx 4 answer!
        I hope for it, but i didn't find any pri file, maybe i take some not correct lib.
        i take lib from here: https://github.com/dplanella/qzxing

        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
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          My bad, I was referring to another library with the same name. IIRC for that one you should only need to build and install it to make it available to your application.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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

            easy to say, install :)) i need deploy to android and iOS :)) if hunestly i can't imagen how to do it with shared lib.

            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
            • M Offline
              M Offline
              maxim.prishchepa
              wrote on last edited by
              #6

              [quote author="SGaist" date="1419283003"]I was referring to another library with the same name[/quote]

              could you provide link to this lib if it's possible?

              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
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                The install process should copy what's need in your Qt installation not your target

                "Other one":http://sourceforge.net/p/qzxing

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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

                  Looks like this port for old (Qt4) version of Qt. :(
                  What about instalation? Do you know some howto/wiki/manual where i can read details?

                  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
                  • M Offline
                    M Offline
                    maxim.prishchepa
                    wrote on last edited by
                    #9

                    Tnx a lot SGaist, your's link to the prev. version of the lib is more then good for me. I can't do QML component, but i make C++ function which i use for determinate QR code, unfortunately for me this is a long process (UI is freezing), will be think, how to invoke method in another thread if it possible...
                    Tnx a lot again!

                    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
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      Did you call "make install" after your built the library ? (the first you tried) It should copy what's needed to the right place in your Qt installation.

                      You can use the worker object paradigm described in QThread's "documentation":http://doc.qt.io/qt-5/qthread.html

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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

                        SGaist: no i don't call make install, AFAIK this will install lib to the local target, but i need use this lib at the android device, so i can't imagen how it will help for me.

                        About second qestion: i'd like to try QtConcurrent::run if it will be possible to use in this case.

                        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
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          And that's exactly what must be done. Adding the library to the local copy will make it available to build your application. I becomes then a dependency that must be copied to your target.

                          Possible it should be yes.

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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

                            About multithreading:
                            i make class handler based on QRunnable, and invoke it over QThreadPull, it is work for me.

                            Is some one try to generate QRCode using QZXing? i can't find any render or somthen like it classes...

                            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
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #14

                              AFAIK, it's a decoding library

                              Interested in AI ? www.idiap.ch
                              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                              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