QtlMovie 1.12 (A specialized FFmpeg front-end)
QtlCore.cpp File Reference

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

Function Documentation

◆ qtlQtVersion()

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.

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]objectStarting 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]outputOutput text stream.
[in]objectRoot object of the hierarchy to dump.
[in]prefixOptional prefix to add at beginning of each line, except the first line.
[in]maxDepthMaximum 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]objectRoot object of the hierarchy to dump.
[in]prefixOptional prefix to add at beginning of each line, except the first line.
[in]maxDepthMaximum depth of children to explore. A negative number means unlimited.
Returns
Object hierarchy.