QRect

#include <QtCore/QRect>

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


Overview

Public Functions Index

QRect ()
QRect (const QPoint &topleft, const QPoint &bottomright)
QRect (const QPoint &topleft, const QSize &size)
QRect (int left, int top, int width, int height)
voidadjust (int x1, int y1, int x2, int y2)
QRectadjusted (int x1, int y1, int x2, int y2) const
intbottom () const
QPointbottomLeft () const
QPointbottomRight () const
QPointcenter () const
boolcontains (const QPoint &p, bool proper=false) const
boolcontains (int x, int y) const
boolcontains (int x, int y, bool proper) const
boolcontains (const QRect &r, bool proper=false) const
voidgetCoords (int *x1, int *y1, int *x2, int *y2) const
voidgetRect (int *x, int *y, int *w, int *h) const
intheight () const
QRectintersect (const QRect &r) const
QRectintersected (const QRect &other) const
boolintersects (const QRect &r) const
boolisEmpty () const
boolisNull () const
boolisValid () const
intleft () const
voidmoveBottom (int pos)
voidmoveBottomLeft (const QPoint &p)
voidmoveBottomRight (const QPoint &p)
voidmoveCenter (const QPoint &p)
voidmoveLeft (int pos)
voidmoveRight (int pos)
voidmoveTo (int x, int t)
voidmoveTo (const QPoint &p)
voidmoveTop (int pos)
voidmoveTopLeft (const QPoint &p)
voidmoveTopRight (const QPoint &p)
QRectnormalized () const
QRectoperator& (const QRect &r) const
QRect &operator&= (const QRect &r)
QRectoperator| (const QRect &r) const
QRect &operator|= (const QRect &r)
intright () const
voidsetBottom (int pos)
voidsetBottomLeft (const QPoint &p)
voidsetBottomRight (const QPoint &p)
voidsetCoords (int x1, int y1, int x2, int y2)
voidsetHeight (int h)
voidsetLeft (int pos)
voidsetRect (int x, int y, int w, int h)
voidsetRight (int pos)
voidsetSize (const QSize &s)
voidsetTop (int pos)
voidsetTopLeft (const QPoint &p)
voidsetTopRight (const QPoint &p)
voidsetWidth (int w)
voidsetX (int x)
voidsetY (int y)
QSizesize () const
inttop () const
QPointtopLeft () const
QPointtopRight () const
voidtranslate (int dx, int dy)
voidtranslate (const QPoint &p)
QRecttranslated (int dx, int dy) const
QRecttranslated (const QPoint &p) const
QRectunite (const QRect &r) const
QRectunited (const QRect &other) const
intwidth () const
intx () const
inty () const

Public Functions

QRect ()

QRect (

QRect (

QRect (
  • intleft,
  • inttop,
  • intwidth,
  • intheight )

void adjust (
  • intx1,
  • inty1,
  • intx2,
  • inty2 )

QRect adjusted (
  • intx1,
  • inty1,
  • intx2,
  • inty2 )

int bottom ()

QPoint bottomLeft ()

QPoint bottomRight ()

QPoint center ()

bool contains (

bool contains (
  • intx,
  • inty )

bool contains (
  • intx,
  • inty,
  • boolproper )

bool contains (
  • const QRect &r,
  • boolproper )

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

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

int height ()

QRect intersect (

QRect intersected (

bool intersects (

bool isEmpty ()

bool isNull ()

bool isValid ()

int left ()

void moveBottom (
  • intpos)

void moveBottomLeft (

void moveBottomRight (

void moveCenter (

void moveLeft (
  • intpos)

void moveRight (
  • intpos)

void moveTo (
  • intx,
  • intt )

void moveTo (

void moveTop (
  • intpos)

void moveTopLeft (

void moveTopRight (

QRect normalized ()

QRect operator& (

QRect & operator&= (

QRect operator| (

QRect & operator|= (

int right ()

void setBottom (
  • intpos)

void setBottomLeft (

void setBottomRight (

void setCoords (
  • intx1,
  • inty1,
  • intx2,
  • inty2 )

void setHeight (
  • inth)

void setLeft (
  • intpos)

void setRect (
  • intx,
  • inty,
  • intw,
  • inth )

void setRight (
  • intpos)

void setSize (

void setTop (
  • intpos)

void setTopLeft (

void setTopRight (

void setWidth (
  • intw)

void setX (
  • intx)

void setY (
  • inty)

QSize size ()

int top ()

QPoint topLeft ()

QPoint topRight ()

void translate (
  • intdx,
  • intdy )

void translate (

QRect translated (
  • intdx,
  • intdy )

QRect translated (

QRect unite (

QRect united (

int width ()

int x ()

int y ()

Last modified: 2015-07-24



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

comments powered by Disqus