QRectF

#include <QtCore/QRectF>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QRectF


Overview

Public Functions Index

QRectF ()
QRectF (const QPointF &topleft, const QSizeF &size)
QRectF (const QPointF &topleft, const QPointF &bottomRight)
QRectF (qreal left, qreal top, qreal width, qreal height)
QRectF (const QRect &rect)
voidadjust (qreal x1, qreal y1, qreal x2, qreal y2)
QRectFadjusted (qreal x1, qreal y1, qreal x2, qreal y2) const
qrealbottom () const
QPointFbottomLeft () const
QPointFbottomRight () const
QPointFcenter () const
boolcontains (const QPointF &p) const
boolcontains (qreal x, qreal y) const
boolcontains (const QRectF &r) const
voidgetCoords (qreal *x1, qreal *y1, qreal *x2, qreal *y2) const
voidgetRect (qreal *x, qreal *y, qreal *w, qreal *h) const
qrealheight () const
QRectFintersect (const QRectF &r) const
QRectFintersected (const QRectF &other) const
boolintersects (const QRectF &r) const
boolisEmpty () const
boolisNull () const
boolisValid () const
qrealleft () const
voidmoveBottom (qreal pos)
voidmoveBottomLeft (const QPointF &p)
voidmoveBottomRight (const QPointF &p)
voidmoveCenter (const QPointF &p)
voidmoveLeft (qreal pos)
voidmoveRight (qreal pos)
voidmoveTo (qreal x, qreal t)
voidmoveTo (const QPointF &p)
voidmoveTop (qreal pos)
voidmoveTopLeft (const QPointF &p)
voidmoveTopRight (const QPointF &p)
QRectFnormalized () const
QRectFoperator& (const QRectF &r) const
QRectF &operator&= (const QRectF &r)
QRectFoperator| (const QRectF &r) const
QRectF &operator|= (const QRectF &r)
qrealright () const
voidsetBottom (qreal pos)
voidsetBottomLeft (const QPointF &p)
voidsetBottomRight (const QPointF &p)
voidsetCoords (qreal x1, qreal y1, qreal x2, qreal y2)
voidsetHeight (qreal h)
voidsetLeft (qreal pos)
voidsetRect (qreal x, qreal y, qreal w, qreal h)
voidsetRight (qreal pos)
voidsetSize (const QSizeF &s)
voidsetTop (qreal pos)
voidsetTopLeft (const QPointF &p)
voidsetTopRight (const QPointF &p)
voidsetWidth (qreal w)
voidsetX (qreal pos)
voidsetY (qreal pos)
QSizeFsize () const
QRecttoAlignedRect () const
qrealtop () const
QPointFtopLeft () const
QPointFtopRight () const
QRecttoRect () const
voidtranslate (qreal dx, qreal dy)
voidtranslate (const QPointF &p)
QRectFtranslated (qreal dx, qreal dy) const
QRectFtranslated (const QPointF &p) const
QRectFunite (const QRectF &r) const
QRectFunited (const QRectF &other) const
qrealwidth () const
qrealx () const
qrealy () const

Public Functions

QRectF ()

QRectF (

QRectF (

QRectF (
  • qrealleft,
  • qrealtop,
  • qrealwidth,
  • qrealheight )

QRectF (

void adjust (
  • qrealx1,
  • qrealy1,
  • qrealx2,
  • qrealy2 )

QRectF adjusted (
  • qrealx1,
  • qrealy1,
  • qrealx2,
  • qrealy2 )

qreal bottom ()

QPointF bottomLeft ()

QPointF bottomRight ()

QPointF center ()

bool contains (

bool contains (
  • qrealx,
  • qrealy )

bool contains (

void getCoords (
  • qreal *x1,
  • qreal *y1,
  • qreal *x2,
  • qreal *y2 )

void getRect (
  • qreal *x,
  • qreal *y,
  • qreal *w,
  • qreal *h )

qreal height ()

QRectF intersect (

QRectF intersected (

bool intersects (

bool isEmpty ()

bool isNull ()

bool isValid ()

qreal left ()

void moveBottom (
  • qrealpos)

void moveBottomLeft (

void moveBottomRight (

void moveCenter (

void moveLeft (
  • qrealpos)

void moveRight (
  • qrealpos)

void moveTo (
  • qrealx,
  • qrealt )

void moveTo (

void moveTop (
  • qrealpos)

void moveTopLeft (

void moveTopRight (

QRectF normalized ()

QRectF operator& (

QRectF & operator&= (

QRectF operator| (

QRectF & operator|= (

qreal right ()

void setBottom (
  • qrealpos)

void setBottomLeft (

void setBottomRight (

void setCoords (
  • qrealx1,
  • qrealy1,
  • qrealx2,
  • qrealy2 )

void setHeight (
  • qrealh)

void setLeft (
  • qrealpos)

void setRect (
  • qrealx,
  • qrealy,
  • qrealw,
  • qrealh )

void setRight (
  • qrealpos)

void setSize (

void setTop (
  • qrealpos)

void setTopLeft (

void setTopRight (

void setWidth (
  • qrealw)

void setX (
  • qrealpos)

void setY (
  • qrealpos)

QSizeF size ()

QRect toAlignedRect ()

qreal top ()

QPointF topLeft ()

QPointF topRight ()

QRect toRect ()

void translate (
  • qrealdx,
  • qrealdy )

void translate (

QRectF translated (
  • qrealdx,
  • qrealdy )

QRectF translated (

QRectF unite (

QRectF united (

qreal width ()

qreal x ()

qreal y ()

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus