Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Showcase
  4. QR code creator and scanner for desktop and wasm
QtWS25 Last Chance

QR code creator and scanner for desktop and wasm

Scheduled Pinned Locked Moved Unsolved Showcase
8 Posts 4 Posters 901 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.
  • MesrineM Offline
    MesrineM Offline
    Mesrine
    wrote on last edited by Mesrine
    #1

    Hello everyone,

    I want to point your attention to a Qt QrCode library I have put together.
    https://github.com/EddyTheCo/Esterv.Utils.QrCode

    This library in principle should work for major desktop platforms and wasm.

    The most interesting thing(at least for me) is the decoder that also works for wasm. It uses OpenCV.

    You can see an example of the use in https://eddytheco.github.io/DLockersClient/

    I will try to create more documentation on how to use it in the future.

    MesrineM 1 Reply Last reply
    0
    • MesrineM Mesrine

      Hello everyone,

      I want to point your attention to a Qt QrCode library I have put together.
      https://github.com/EddyTheCo/Esterv.Utils.QrCode

      This library in principle should work for major desktop platforms and wasm.

      The most interesting thing(at least for me) is the decoder that also works for wasm. It uses OpenCV.

      You can see an example of the use in https://eddytheco.github.io/DLockersClient/

      I will try to create more documentation on how to use it in the future.

      MesrineM Offline
      MesrineM Offline
      Mesrine
      wrote on last edited by
      #2

      @Mesrine

      You can test the scanner here
      You can test the generator here

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jimmy A. Medley
        wrote on last edited by
        #3

        Creating a QR code creator and scanner for desktop and WebAssembly (Wasm) involves using programming languages and libraries that support both environments. Below, I'll provide a basic example using HTML, JavaScript, and a popular library called jsQR for QR code scanning. For QR code creation, we can use the qrcode-generator library.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          Dougf9
          wrote on last edited by
          #4

          @Mesrine said in QR code creator and scanner for desktop and wasm:

          https://github.com/EddyTheCo/Esterv.Utils.QrCode

          I am a real newbee and am stuck. I used github to obtain https://github.com/EddyTheCo/Esterv.Utils.QrCode. It put the files on my computer just fine. But I don't know how to build the library. Using git bash, I tried just "cmake ." and it tried to find VS 22. I have VS 19 installed. How can I tell cmake to use VS 19?

          Further, after I have built the library, how do I tell my Qt project where it is?

          Thanks for you help.

          jsulmJ MesrineM 2 Replies Last reply
          0
          • D Dougf9

            @Mesrine said in QR code creator and scanner for desktop and wasm:

            https://github.com/EddyTheCo/Esterv.Utils.QrCode

            I am a real newbee and am stuck. I used github to obtain https://github.com/EddyTheCo/Esterv.Utils.QrCode. It put the files on my computer just fine. But I don't know how to build the library. Using git bash, I tried just "cmake ." and it tried to find VS 22. I have VS 19 installed. How can I tell cmake to use VS 19?

            Further, after I have built the library, how do I tell my Qt project where it is?

            Thanks for you help.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Dougf9 said in QR code creator and scanner for desktop and wasm:

            How can I tell cmake to use VS 19?

            By openning the preconfigured VS19 command line (in your Windows menu).

            "Further, after I have built the library, how do I tell my Qt project where it is?" - do you use qmake or cmake?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • D Offline
              D Offline
              Dougf9
              wrote on last edited by
              #6

              what is a preconfigured VS19 command line? I tried both CLI's for VS19 and neither could find the CXX compiler.

              i am using cmake.

              jsulmJ 1 Reply Last reply
              0
              • D Dougf9

                what is a preconfigured VS19 command line? I tried both CLI's for VS19 and neither could find the CXX compiler.

                i am using cmake.

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Dougf9 said in QR code creator and scanner for desktop and wasm:

                what is a preconfigured VS19 command line?

                The terminal (cmd.exe) Visual Studio provides.

                "I tried both CLI's for VS19" - what do you mean by that? If you use preconfigured terminal from Visual Studio it should find the compiler. How did you call cmake?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • D Dougf9

                  @Mesrine said in QR code creator and scanner for desktop and wasm:

                  https://github.com/EddyTheCo/Esterv.Utils.QrCode

                  I am a real newbee and am stuck. I used github to obtain https://github.com/EddyTheCo/Esterv.Utils.QrCode. It put the files on my computer just fine. But I don't know how to build the library. Using git bash, I tried just "cmake ." and it tried to find VS 22. I have VS 19 installed. How can I tell cmake to use VS 19?

                  Further, after I have built the library, how do I tell my Qt project where it is?

                  Thanks for you help.

                  MesrineM Offline
                  MesrineM Offline
                  Mesrine
                  wrote on last edited by Mesrine
                  #8

                  @Dougf9 Thanks for your interest. The last time I checked the library compiled for Windows in the GitHub runners.

                  1- If you want to compile the library after you download the source code from github, go inside the project root folder and do
                  cmake --workflow --preset default-develop.
                  Or use a IDE with CMake Presets support.

                  2- You can also download the releases for Windows here.

                  how do I tell my Qt project where it is ->
                  To consume the project target as explained here
                  Add this to your CMake/Qt project

                  include(FetchContent)
                  FetchContent_Declare(
                  	EstervQrCode
                  	GIT_REPOSITORY https://github.com/EddyTheCo/Esterv.Utils.QrCode.git
                  	GIT_TAG v2.0.0
                  	FIND_PACKAGE_ARGS 2.0 COMPONENTS QrDec QrGen QtQrDec QtQrGen CONFIG
                  	)
                  FetchContent_MakeAvailable(EstervQrCode)
                  
                  target_link_libraries(YOUR_PROJECT_TARGET PRIVATE Esterv::QrGen Esterv::QtQrGen Esterv::QrDec Esterv::QtQrDec)
                  

                  This will try to find the library on your system using find_package. If it is not found, it will download the source from Git Hub and compile the library when you build your project. So you do not need to manually download the library or compile it.
                  The library can be found by find_package in the build directory from step 1 or from the place you installed the releases in step 2.

                  Then you can use the QML types or the C++ API that in somehow is explained here

                  I appreciate any feedback from Windows developers.

                  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