Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQmlSizeValueType Struct Reference

#include <qqmlvaluetype_p.h>

+ Collaboration diagram for QQmlSizeValueType:

Public Member Functions

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

Public Attributes

QSize v
 

Properties

int width
 
int height
 

Detailed Description

Definition at line 178 of file qqmlvaluetype_p.h.

Constructor & Destructor Documentation

◆ QQmlSizeValueType() [1/2]

QQmlSizeValueType::QQmlSizeValueType ( )
default

◆ QQmlSizeValueType() [2/2]

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

Definition at line 192 of file qqmlvaluetype_p.h.

Member Function Documentation

◆ height()

int QQmlSizeValueType::height ( ) const

Definition at line 205 of file qqmlvaluetype.cpp.

◆ operator QSize()

QQmlSizeValueType::operator QSize ( ) const
inline

Definition at line 199 of file qqmlvaluetype_p.h.

◆ setHeight()

void QQmlSizeValueType::setHeight ( int h)

Definition at line 215 of file qqmlvaluetype.cpp.

◆ setWidth()

void QQmlSizeValueType::setWidth ( int w)

Definition at line 210 of file qqmlvaluetype.cpp.

◆ toString()

QString QQmlSizeValueType::toString ( ) const

Definition at line 195 of file qqmlvaluetype.cpp.

References QString::asprintf().

+ Here is the call graph for this function:

◆ width()

int QQmlSizeValueType::width ( ) const

Definition at line 200 of file qqmlvaluetype.cpp.

Member Data Documentation

◆ v

QSize QQmlSizeValueType::v

Definition at line 180 of file qqmlvaluetype_p.h.

Property Documentation

◆ height

int QQmlSizeValueType::height
readwrite

Definition at line 182 of file qqmlvaluetype_p.h.

◆ width

int QQmlSizeValueType::width
readwrite

Definition at line 181 of file qqmlvaluetype_p.h.


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