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 172 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 184 of file qqmlvaluetype_p.h.

◆ QQmlSizeValueType() [3/3]

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

Definition at line 185 of file qqmlvaluetype_p.h.

Member Function Documentation

◆ height()

int QQmlSizeValueType::height ( ) const

Definition at line 209 of file qqmlvaluetype.cpp.

◆ setHeight()

void QQmlSizeValueType::setHeight ( int h)

Definition at line 219 of file qqmlvaluetype.cpp.

◆ setWidth()

void QQmlSizeValueType::setWidth ( int w)

Definition at line 214 of file qqmlvaluetype.cpp.

◆ toString()

QString QQmlSizeValueType::toString ( ) const

Definition at line 199 of file qqmlvaluetype.cpp.

◆ width()

int QQmlSizeValueType::width ( ) const

Definition at line 204 of file qqmlvaluetype.cpp.

Property Documentation

◆ height

int QQmlSizeValueType::height
readwrite

Definition at line 175 of file qqmlvaluetype_p.h.

◆ width

int QQmlSizeValueType::width
readwrite

Definition at line 174 of file qqmlvaluetype_p.h.


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