Qx v0.7
Qt Extensions Library
|
The ButtonGroup class provides a container to organize groups of button widgets. More...
#include <qx/widgets/qx-buttongroup.h>
Public Member Functions | |
LoginDialog (QWidget *parent=nullptr, QString prompt=LABEL_DEF_PRMT) | |
QString | password () |
void | setPrompt (QString prompt) |
QString | username () |
The LoginDialog class provides a modal dialog that prompts a user for a username and password.
This class is the same as QButtonGroup, with a property and change signal for the currently checked button
|
explicit |
Constructs a login dialog with parent parent that displays the given prompt.
The default prompt simply states "Login Required".
QString Qx::LoginDialog::password | ( | ) |
Returns the string entered into the dialog's password field.
void Qx::LoginDialog::setPrompt | ( | QString | prompt | ) |
Sets the login dialog's prompt.
QString Qx::LoginDialog::username | ( | ) |
Returns the string entered into the dialog's username field.