|
Toolbox Qt
|
Class containing multiple helpful methods related to widgets. More...
Static Public Member Functions | |
| static void | labelSetPathDir (QLabel *label, const QDir &dir, bool verifyExist) |
| Use to display a directory path inside a label. | |
| static void | labelSetPathFile (QLabel *label, const QFileInfo &fileInfo, bool verifyExist) |
| Use to display a file info path inside a label. | |
| static void | lineEditSetAsInputPasswd (QLineEdit *lineEdit, const QIcon &iconShow, const QIcon &iconHide, const QString &txtShow="Show password", const QString &txtHide="Hide password") |
| Use to initialize a line edit input as a password input. | |
Class containing multiple helpful methods related to widgets.
This class group multiple methods that are simple enough to not have to create an inherited object.
|
static |
Use to display a directory path inside a label.
Latest directory path part will be displayed, the rest of it will be displayed as a tooltip.
| [out] | label | Label to use. Must be not NULL. |
| [in] | dir | Directory to display. If directory is current working directory ("."), directory will be considered as not selected. |
| [in] | verifyExist | If true, method will verify that directory exist : if not, we will consider that that directory has not been selected. |
|
static |
Use to display a file info path inside a label.
Filaname will be displayed, the path will be displayed as a tooltip.
| [out] | label | Label to use. Must be not NULL. |
| [in] | fileInfo | File informations to use. If empty, file will be considered as not selected. |
| [in] | verifyExist | If true, method will verify that file exist : if not, we will consider that file has not been selected. |
|
static |
Use to initialize a line edit input as a password input.
It allow to manage show/hide property of a password field input.
| [out] | lineEdit | Line edit to set. Must be not NULL. |
| [in] | iconShow | Icon to use to show password. |
| [in] | iconHide | Icon to use to hide password. |
| [in] | txtShow | Tooltip to use to show password. |
| [in] | txtHide | Tooltip to use to hide password. |