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. | |
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. |