QSize

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QSize(nativeElement: NativeElement): QSize

Overrides Component.constructor

Parameters:

NameType
nativeElementNativeElement

Returns: QSize

+ new QSize(width?: number, height?: number): QSize

Overrides Component.constructor

Parameters:

NameType
width?number
height?number

Returns: QSize

Properties

native

• native: NativeElement | null

Inherited from Component.native

Methods

boundedTo

â–¸ boundedTo(otherSize: QSize): QSize

Parameters:

NameType
otherSizeQSize

Returns: QSize


expandedTo

â–¸ expandedTo(otherSize: QSize): QSize

Parameters:

NameType
otherSizeQSize

Returns: QSize


height

â–¸ height(): number

Returns: number


isEmpty

â–¸ isEmpty(): boolean

Returns: boolean


isNull

â–¸ isNull(): boolean

Returns: boolean


isValid

â–¸ isValid(): boolean

Returns: boolean


scale

â–¸ scale(width: number, height: number, mode: AspectRatioMode): void

Parameters:

NameType
widthnumber
heightnumber
modeAspectRatioMode

Returns: void


scaled

â–¸ scaled(width: number, height: number, mode: AspectRatioMode): QSize

Parameters:

NameType
widthnumber
heightnumber
modeAspectRatioMode

Returns: QSize


setHeight

â–¸ setHeight(height: number): void

Parameters:

NameType
heightnumber

Returns: void


setWidth

â–¸ setWidth(width: number): void

Parameters:

NameType
widthnumber

Returns: void


transpose

â–¸ transpose(): void

Returns: void


transposed

â–¸ transposed(): QSize

Returns: QSize


width

â–¸ width(): number

Returns: number


Static fromQVariant

â–¸ fromQVariant(variant: QVariant): QSize

Parameters:

NameType
variantQVariant

Returns: QSize