User Tools

Site Tools


QObject

Properties

QtScript
StringobjectName
DAZ Script
Stringname

Methods

QtScript
voiddeleteLater ()
ObjectfindChild ( String name=“” )
ArrayfindChildren ( String name=“” )
StringtoString ()
DAZ Script
StringclassName ()
Booleaninherits ( String classname )
BooleanisA ( String classname )

Signals

voiddestroyed ( QObject obj=null )

Detailed Description

TODO: Add detailed description.

Properties


String : objectName

Holds the name of the object.


String : name

Holds the name of the object.

Methods


void : deleteLater()

Schedules this object for deletion.


Object : findChild( String name=“” )

Parameter(s):

  • name - The name of the child object to find.

Return Value:

  • The child of this object that is named name, or undefined if name cannot be found. If name is empty, it is equivalent to all names. The search is performed recursively.

Attention:

  • If more than one child matches name, the most direct ancestor is returned. If several direct ancestors are named name, it is undefined which one will be returned. In that case, use findChildren() instead.

Array : findChildren( String name=“” )

Parameter(s):

  • name - The name of the children objects to find.

Return Value:

  • All children of this object that are named name, or an empty list if name cannot be found. If name is empty, it is equivalent to all names. The search is performed recursively.

String : toString()

Return Value:

  • The string representation of the object.

String : className()

Return Value:

  • A string representation of the object classname.

Boolean : inherits( String classname )

Parameter(s):

  • classname - The name of the class to test for inheritance.

Return Value:

  • true if the object inherits classname, otherwise false.

Boolean : isA( String classname )

Parameter(s):

  • classname - The name of the class to test.

Return Value:

  • true if the object is an instance of classname, otherwise false.

Signals


void : destroyed( QObject obj=null )

Signature:“destroyed(QObject*)”

Emitted immediately before the object is destroyed.