Component
Abstract class that is root most base class for all widgets and layouts in the NodeGui World.
*This class is used to add core properties to all widgets, layouts etc in NodeGui world. Currently it helps us maintain references to the native C++ instance of the widget or layout. It also helps in preventing gc of child elements of a layout or widget**
Component
is an abstract class and hence no instances of the same should be created.
It exists so that we can add core functionalities to all widgets and layouts easily. This is an internal class.
Its the root base class in NodeGui world.
Hierarchy
Component
↳ EventWidget
↳ QRect
↳ QVariant
↳ QSize
↳ QPoint
↳ QColor
↳ QImage
↳ QPixmap
↳ QFont
↳ QPainterPath
↳ QBrush
↳ QPen
↳ QPointF
↳ QRectF
↳ QPainter
↳ QIcon
↳ QCursor
↳ QKeySequence
↳ QUrl
↳ QMimeData
↳ QPalette
↳ QSizeF
↳ QPicture
↳ QFontDatabase
↳ QFontMetrics
↳ QFontMetricsF
↳ QDrag
↳ QModelIndex
↳ QDate
↳ QTime
↳ QDateTime
↳ QStandardItem
↳ QListWidgetItem
↳ QTableWidgetItem
↳ QTreeWidgetItem
↳ QSettings
↳ QStyle
Index
Constructors
Properties
Constructors
constructor
+ new Component(native
: NativeElement): Component
Parameters:
Name | Type |
---|---|
native | NativeElement |
Returns: Component
Properties
native
• native: NativeElement | null