MultiMC5/libraries/qrcode/README.md
Petr Mrázek 07907ded5c NOISSUE revamp the MSA login dialog
It now has a more sensible UI/UX:
- Added a QR code you can scan on your phone to complete the logn flow
- Inverted the progress bar to show that it is a timeout
- Redone the text label so that it does not break the layout when it has multiple lines

Also started working on redoing the accounts/profiles/skins/capes management in general
2024-12-24 05:47:37 +01:00

26 lines
857 B
Markdown

# Qt QR Code Generator Library
Qt QR Code Generator is a simple C++ class that uses the [qrcodegen](https://github.com/nayuki/QR-Code-generator) library to generate QR codes from QStrings in Qt applications.
[![Screenshot](example/screenshot.png)](example/screenshot.png)
## Usage
1. Copy the *Qt-QrCodeGenerator* folder in your `lib` folder.
2. Include the *Qt-QrCodeGenerator* project include (pri) file using the `include()` qmake function.
3. Use the `QrCodeGenerator` class in your code:
```cpp
#include <QrCodeGenerator>
QrCodeGenerator generator;
QString data = "https://www.example.com";
QImage qrCodeImage = generator.generateQr(data);
```
4. That's all! Check the [example](example) project as a reference for your project if needed.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.