Declare some utilities functions for QMessageBox.
More...
|
void | qtlAbout (QObject *parent, const QString &title, const QString &iconPath, const QString &text) |
| Display a simple "about" box similar to QMessageBox::about() but add a specific icon. More...
|
|
bool | qtlConfirm (QObject *parent, const QString &question, const QString &title=qtlApplicationName()) |
| Ask a question with Yes/No buttons (default to No). More...
|
|
void | qtlError (QObject *parent, const QString &message, const QString &title=qtlApplicationName()) |
| Report an error message. More...
|
|
Declare some utilities functions for QMessageBox.
Qtl, Qt utility library.
◆ qtlConfirm()
bool qtlConfirm |
( |
QObject * |
parent, |
|
|
const QString & |
question, |
|
|
const QString & |
title = qtlApplicationName() |
|
) |
| |
Ask a question with Yes/No buttons (default to No).
- Parameters
-
[in] | parent | Parent object/widget. If not a widget, find first widget in its hierarchy. |
[in] | question | The question to display. |
[in] | title | Dialog box title. Default to the application name. |
- Returns
- True if answer is Yes, false otherwise.
◆ qtlError()
void qtlError |
( |
QObject * |
parent, |
|
|
const QString & |
message, |
|
|
const QString & |
title = qtlApplicationName() |
|
) |
| |
Report an error message.
- Parameters
-
[in] | parent | Parent object/widget. If not a widget, find first widget in its hierarchy. |
[in] | message | The message to display. |
[in] | title | Dialog box title. Default to the application name. |
◆ qtlAbout()
void qtlAbout |
( |
QObject * |
parent, |
|
|
const QString & |
title, |
|
|
const QString & |
iconPath, |
|
|
const QString & |
text |
|
) |
| |
Display a simple "about" box similar to QMessageBox::about() but add a specific icon.
- Parameters
-
[in] | parent | Parent object/widget. If not a widget, find first widget in its hierarchy. |
[in] | title | Window title. |
[in] | iconPath | Path to icon file, for instance ":/images/logo.png". |
[in] | text | Description text. Can be HTML. |