Qt 6.x
The Qt SDK
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 196 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 206 of file qqmlvaluetype.cpp.

◆ setWidth()

void QQmlSizeValueType::setWidth ( int  w)

Definition at line 201 of file qqmlvaluetype.cpp.

◆ toString()

QString QQmlSizeValueType::toString ( ) const

Definition at line 186 of file qqmlvaluetype.cpp.

References QString::asprintf().

+ Here is the call graph for this function:

◆ width()

int QQmlSizeValueType::width ( ) const

Definition at line 191 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 180 of file qqmlvaluetype_p.h.

◆ width

int QQmlSizeValueType::width
readwrite

Definition at line 180 of file qqmlvaluetype_p.h.


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