Functions | |
| QString | qtlApplicationName () |
| Get a suitable value for application name. More... | |
| void | qtlDumpObjectHierarchy (QTextStream &output, QObject *object, const QString &prefix, int maxDepth) |
| Dump an object hierarchy. More... | |
| QString | qtlObjectHierarchy (QObject *object, const QString &prefix, int maxDepth) |
| Dump an object hierarchy in a string. More... | |
| int | qtlQtVersion () |
| Return the runtime version of Qt as an integer, 0xMMNNPP (MM = major, NN = minor, PP = patch). More... | |
| QWidget * | qtlWidgetAncestor (QObject *object) |
| Get the first QWidget in the line of ancestors, starting at (and including) object. More... | |
| int qtlQtVersion | ( | ) |
Return the runtime version of Qt as an integer, 0xMMNNPP (MM = major, NN = minor, PP = patch).
Similar to the macro QT_VERSION but applies to the runtime version, not to the compile-time version.
| QString qtlApplicationName | ( | ) |
Get a suitable value for application name.
| QWidget* qtlWidgetAncestor | ( | QObject * | object | ) |
Get the first QWidget in the line of ancestors, starting at (and including) object.
| [in] | object | Starting object. Can be null. |
| void qtlDumpObjectHierarchy | ( | QTextStream & | output, |
| QObject * | object, | ||
| const QString & | prefix = QString(), |
||
| int | maxDepth = -1 |
||
| ) |
Dump an object hierarchy.
Multiple lines are separated by new lines. The last line is not terminated by a new line.
| [in,out] | output | Output text stream. |
| [in] | object | Root object of the hierarchy to dump. |
| [in] | prefix | Optional prefix to add at beginning of each line, except the first line. |
| [in] | maxDepth | Maximum depth of children to explore. A negative number means unlimited. |
| QString qtlObjectHierarchy | ( | QObject * | object, |
| const QString & | prefix = QString(), |
||
| int | maxDepth = -1 |
||
| ) |
Dump an object hierarchy in a string.
| [in] | object | Root object of the hierarchy to dump. |
| [in] | prefix | Optional prefix to add at beginning of each line, except the first line. |
| [in] | maxDepth | Maximum depth of children to explore. A negative number means unlimited. |