|
VGamepad PC
The PC app for the virtual game controller.
|
#include "server.hpp"#include "../../third-party-libs/QR-Code-generator/cpp/qrcodegen.hpp"#include "../settings/settings_singleton.hpp"#include "ui_server.h"#include <QDataStream>#include <QHostAddress>#include <QList>#include <QMessageBox>#include <QNetworkInterface>#include <QThread>Functions | |
| QImage | createQR (const QString &data, const int border=1, const uint scalingFactor=10) |
| Creates a QR code from a string. | |
| QImage createQR | ( | const QString & | data, |
| const int | border = 1, | ||
| const uint | scalingFactor = 10 ) |
Creates a QR code from a string.
This function uses Nayuki's QR Code Generator library.
Guided by: https://stackoverflow.com/a/39951669/8659747
| data | The string to encode |
| border | The padding around the QR code (in pixels) |
| scalingFactor | The scaling factor for the final image |