QGraphicsEffect

This is the abstract base class of graphicseffect, providing their functionality.

This class is a JS wrapper around Qt's QGraphicsEffect class

The QGraphicsEffect class is an abstract class and therefore, technically, no further instances actually have to be created. It is inherited by QGraphicsBlurEffect, QGraphicsColorizeEffect, QGraphicsDropShadowEffect, and QGraphicsOpacityEffect.

Type parameters

â–ª Signals: QGraphicsEffectSignals

Hierarchy

↳ NodeObject‹Signals›

↳ QGraphicsEffect

↳ QGraphicsBlurEffect

↳ QGraphicsDropShadowEffect

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QGraphicsEffect(native: NativeElement): QGraphicsEffect

Inherited from EventWidget.constructor

Overrides Component.constructor

Parameters:

NameType
nativeNativeElement

Returns: QGraphicsEffect

Properties

Abstract native

• native: NativeElement

Inherited from Component.native


nodeChildren

• nodeChildren: Set‹Component›

Inherited from Component.nodeChildren


Optional nodeParent

• nodeParent? : Component

Inherited from Component.nodeParent

Methods

addEventListener

▸ addEventListener‹SignalType›(signalType: SignalType, callback: Signals[SignalType]): void

Inherited from EventWidget.addEventListener

Type parameters:

â–ª SignalType: keyof Signals

Parameters:

NameTypeDescription
signalTypeSignalTypeSignalType is a signal from the widgets signals interface.
callbackSignals[SignalType]Corresponding callback for the signal as mentioned in the widget's signal interface

Returns: void

void

For example in the case of QPushButton:

const button = new QPushButton();
button.addEventListener('clicked',(checked)=>console.log("clicked"));
// here clicked is a value from QPushButtonSignals interface

â–¸ addEventListener(eventType: WidgetEventTypes, callback: function): void

Inherited from EventWidget.addEventListener

Parameters:

â–ª eventType: WidgetEventTypes

â–ª callback: function

For example in the case of QPushButton:

const button = new QPushButton();
button.addEventListener(WidgetEventTypes.HoverEnter,()=>console.log("hovered"));

▸ (event?: NativeRawPointer‹"QEvent"›): void

Parameters:

NameType
event?NativeRawPointer‹"QEvent"›

Returns: void


inherits

â–¸ inherits(className: string): boolean

Inherited from NodeObject.inherits

Parameters:

NameType
classNamestring

Returns: boolean


isEnabled

â–¸ isEnabled(): boolean

Returns: boolean


objectName

â–¸ objectName(): string

Inherited from NodeObject.objectName

Returns: string


property

â–¸ property(name: string): QVariant

Inherited from NodeObject.property

Parameters:

NameType
namestring

Returns: QVariant


removeEventListener

▸ removeEventListener‹SignalType›(signalType: SignalType, callback: Signals[SignalType]): void

Inherited from EventWidget.removeEventListener

Type parameters:

â–ª SignalType: keyof Signals

Parameters:

NameType
signalTypeSignalType
callbackSignals[SignalType]

Returns: void

â–¸ removeEventListener(eventType: WidgetEventTypes, callback: function): void

Inherited from EventWidget.removeEventListener

Parameters:

â–ª eventType: WidgetEventTypes

â–ª callback: function

▸ (event?: NativeRawPointer‹"QEvent"›): void

Parameters:

NameType
event?NativeRawPointer‹"QEvent"›

Returns: void


setEnabled

â–¸ setEnabled(enable: boolean): void

Parameters:

NameType
enableboolean

Returns: void


setNodeParent

â–¸ setNodeParent(parent?: Component): void

Inherited from Component.setNodeParent

Parameters:

NameType
parent?Component

Returns: void


setObjectName

â–¸ setObjectName(objectName: string): void

Inherited from NodeObject.setObjectName

Parameters:

NameType
objectNamestring

Returns: void


setProperty

â–¸ setProperty(name: string, value: QVariantType): boolean

Inherited from NodeObject.setProperty

Parameters:

NameType
namestring
valueQVariantType

Returns: boolean