Qtl core declarations.
More...
|
#define | QTL_WINEXTRAS 1 |
| The symbol QTL_WINEXTRAS is defined when the Qt module winextras is available. More...
|
|
|
QString | qtlApplicationName () |
| Get a suitable value for application name. More...
|
|
void | qtlDumpObjectHierarchy (QTextStream &output, QObject *object, const QString &prefix=QString(), int maxDepth=-1) |
| Dump an object hierarchy. More...
|
|
QString | qtlObjectHierarchy (QObject *object, const QString &prefix=QString(), int maxDepth=-1) |
| 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...
|
|
Qtl core declarations.
Qtl, Qt utility library.
◆ QTL_WINEXTRAS
The symbol QTL_WINEXTRAS is defined when the Qt module winextras is available.
This means on Windows with Qt version >= 5.2.0.
◆ 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.
- Returns
- Qt version as an integer, 0xMMNNPP.
◆ qtlApplicationName()
QString qtlApplicationName |
( |
| ) |
|
Get a suitable value for application name.
- Returns
- Application name.
◆ qtlWidgetAncestor()
QWidget* qtlWidgetAncestor |
( |
QObject * |
object | ) |
|
Get the first QWidget in the line of ancestors, starting at (and including) object.
- Parameters
-
[in] | object | Starting object. Can be null. |
- Returns
- Return the first QWidget in object hierarchy. Return object it is a QWidget. Return zero is object is zero or no QWidget is found in its hierarchy.
◆ qtlDumpObjectHierarchy()
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.
- Parameters
-
[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. |
◆ qtlObjectHierarchy()
QString qtlObjectHierarchy |
( |
QObject * |
object, |
|
|
const QString & |
prefix = QString() , |
|
|
int |
maxDepth = -1 |
|
) |
| |
Dump an object hierarchy in a string.
- Parameters
-
[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. |
- Returns
- Object hierarchy.