QPushButton that presents a text payload as a QR code action.
More...
#include <qpushbuttonasqrcode.h>
|
| void | clicked (const QString &text) |
| | Emitted when the button is activated with the current text payload.
|
QPushButton that presents a text payload as a QR code action.
Definition at line 13 of file qpushbuttonasqrcode.h.
◆ QPushButtonAsQRCode()
| QPushButtonAsQRCode::QPushButtonAsQRCode |
( |
QString | textToCopy = "", |
|
|
QWidget * | parent = nullptr ) |
|
explicit |
Construct a QPushButtonAsQRCode with an optional initial text.
- Parameters
-
| textToCopy | Initial text stored for QR-code use (may be empty). |
| parent | Optional parent widget. |
◆ clicked
| void QPushButtonAsQRCode::clicked |
( |
const QString & | text | ) |
|
|
signal |
Emitted when the button is activated with the current text payload.
- Parameters
-
◆ getTextToCopy()
| auto QPushButtonAsQRCode::getTextToCopy |
( |
| ) |
const -> QString |
|
nodiscard |
Return the stored text used for QR-code actions.
- Returns
- The current stored text.
◆ setTextToCopy()
| void QPushButtonAsQRCode::setTextToCopy |
( |
const QString & | value | ) |
|
Update the stored text used for QR-code actions.
- Parameters
-
The documentation for this class was generated from the following file: