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. A simple library for generating QR codes for your Qt projects
QtWS25 Last Chance

A simple library for generating QR codes for your Qt projects

Scheduled Pinned Locked Moved Unsolved Showcase
2 Posts 2 Posters 4.4k 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.
  • alex_spataruA Offline
    alex_spataruA Offline
    alex_spataru
    wrote on last edited by
    #1

    Hello fellow developers,

    I recently had the need to generate QR codes within one of my applications, so I created a simple and easy-to-use QR code generator library for Qt applications called Qt-QrCodeGenerator. This class allows you to generate QR codes from QStrings quickly and efficiently.

    Features:

    1. Generate QR codes from QStrings.
    2. Configurable error correction levels, border size & image size.
    3. Produces QR codes as QImage objects.
    4. Built on the qrcodegen library.

    How to use:

    1. Download the GitHub project and integrate it with your project using qmake's include() function.
    2. Include the QrCodeGenerator class in your code:
    #include <QrCodeGenerator.h>
    
    QrCodeGenerator generator;
    QString data = "https://www.example.com";
    QImage qrCodeImage = generator.generateQr(data);
    

    Examples:

    Check out the example application in the repository, which demonstrates how to generate and display a QR code using QLabel.

    Contributing:

    Contributions and suggestions are very welcome! Please feel free to report issues, suggest improvements, or contribute code to the GitHub repository.

    I hope you find this class useful in your Qt projects. If you have any questions or feedback, please don't hesitate to respond to this thread or open an issue on the GitHub repository.

    Happy coding!

    piervalliP 1 Reply Last reply
    1
    • alex_spataruA alex_spataru

      Hello fellow developers,

      I recently had the need to generate QR codes within one of my applications, so I created a simple and easy-to-use QR code generator library for Qt applications called Qt-QrCodeGenerator. This class allows you to generate QR codes from QStrings quickly and efficiently.

      Features:

      1. Generate QR codes from QStrings.
      2. Configurable error correction levels, border size & image size.
      3. Produces QR codes as QImage objects.
      4. Built on the qrcodegen library.

      How to use:

      1. Download the GitHub project and integrate it with your project using qmake's include() function.
      2. Include the QrCodeGenerator class in your code:
      #include <QrCodeGenerator.h>
      
      QrCodeGenerator generator;
      QString data = "https://www.example.com";
      QImage qrCodeImage = generator.generateQr(data);
      

      Examples:

      Check out the example application in the repository, which demonstrates how to generate and display a QR code using QLabel.

      Contributing:

      Contributions and suggestions are very welcome! Please feel free to report issues, suggest improvements, or contribute code to the GitHub repository.

      I hope you find this class useful in your Qt projects. If you have any questions or feedback, please don't hesitate to respond to this thread or open an issue on the GitHub repository.

      Happy coding!

      piervalliP Offline
      piervalliP Offline
      piervalli
      wrote on last edited by
      #2

      @alex_spataru
      Thanks to share.

      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