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
QQmlSizeValueType Struct Reference

#include <qqmlvaluetype_p.h>

Inheritance diagram for QQmlSizeValueType:
Collaboration diagram for QQmlSizeValueType:

Public Member Functions

 QQmlSizeValueType ()=default
Q_INVOKABLE QQmlSizeValueType (const QSize &size)
Q_INVOKABLE QQmlSizeValueType (const QSizeF &size)
Q_INVOKABLE QString toString () const
int width () const
int height () const
void setWidth (int)
void setHeight (int)

Properties

int width
int height

Additional Inherited Members

Detailed Description

Definition at line 173 of file qqmlvaluetype_p.h.

Constructor & Destructor Documentation

◆ QQmlSizeValueType() [1/3]

QQmlSizeValueType::QQmlSizeValueType ( )
default

◆ QQmlSizeValueType() [2/3]

Q_INVOKABLE QQmlSizeValueType::QQmlSizeValueType ( const QSize & size)
inline

Definition at line 185 of file qqmlvaluetype_p.h.

◆ QQmlSizeValueType() [3/3]

Q_INVOKABLE QQmlSizeValueType::QQmlSizeValueType ( const QSizeF & size)
inline

Definition at line 186 of file qqmlvaluetype_p.h.

Member Function Documentation

◆ height()

int QQmlSizeValueType::height ( ) const

Definition at line 210 of file qqmlvaluetype.cpp.

◆ setHeight()

void QQmlSizeValueType::setHeight ( int h)

Definition at line 220 of file qqmlvaluetype.cpp.

◆ setWidth()

void QQmlSizeValueType::setWidth ( int w)

Definition at line 215 of file qqmlvaluetype.cpp.

◆ toString()

QString QQmlSizeValueType::toString ( ) const

Definition at line 200 of file qqmlvaluetype.cpp.

◆ width()

int QQmlSizeValueType::width ( ) const

Definition at line 205 of file qqmlvaluetype.cpp.

Property Documentation

◆ height

int QQmlSizeValueType::height
readwrite

Definition at line 176 of file qqmlvaluetype_p.h.

◆ width

int QQmlSizeValueType::width
readwrite

Definition at line 175 of file qqmlvaluetype_p.h.


The documentation for this struct was generated from the following files: