Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
ElementT Class Reference

A variant that contains all the Dom elements that an DomItem can contain. More...

Collaboration diagram for ElementT:

Detailed Description

A variant that contains all the Dom elements that an DomItem can contain.

Types in this variant are divided in two categories: normal Dom elements and internal Dom elements. The first ones are inheriting directly or indirectly from DomBase, and are the usual elements that a DomItem can wrap around, like a QmlFile or an QmlObject. They should all appear in ElementT as pointers, e.g. QmlFile*. The internal Dom elements are a little bit special. They appear in ElementT without pointer, do not inherit from DomBase {but} should behave like a smart DomBase-pointer. That is, they should dereference as if they were a DomBase* pointing to a normal DomElement by implementing operator->() and operator*(). Adding types here that are neither inheriting from DomBase nor implementing a smartpointer to DomBase will throw compilation errors in the std::visit()-calls on this type.


The documentation for this class was generated from the following file: