VGamepad PC
The Windows app for the virtual game controller.
|
#include "server.hpp"
#include "executor.hpp"
#include "ui_server.h"
#include "../../third-party-libs/QR-Code-generator/cpp/qrcodegen.hpp"
#include "../settings_key_variables.hpp"
#include <QByteArray>
#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 |