Skip to main content

QSizeF

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QSizeF(nativeOrWidth?: number | NativeElement, height?: number): QSizeF

Overrides Component.constructor

Parameters:

NameType
nativeOrWidth?number | NativeElement
height?number

Returns: QSizeF

Properties

native

native: NativeElement | null

Inherited from Component.native

Methods

boundedTo

boundedTo(otherSize: QSizeF): QSizeF

Parameters:

NameType
otherSizeQSizeF

Returns: QSizeF


expandedTo

expandedTo(otherSize: QSizeF): QSizeF

Parameters:

NameType
otherSizeQSizeF

Returns: QSizeF


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): QSizeF

Parameters:

NameType
widthnumber
heightnumber
modeAspectRatioMode

Returns: QSizeF


setHeight

setHeight(height: number): void

Parameters:

NameType
heightnumber

Returns: void


setWidth

setWidth(width: number): void

Parameters:

NameType
widthnumber

Returns: void


toSize

toSize(): QSize

Returns: QSize


transpose

transpose(): void

Returns: void


transposed

transposed(): QSizeF

Returns: QSizeF


width

width(): number

Returns: number


Static fromQVariant

fromQVariant(variant: QVariant): QSizeF

Parameters:

NameType
variantQVariant

Returns: QSizeF