Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Properties | Friends

QWidget Class Reference

Search for all occurrences

Detailed Description

Examples:

MeshDisplace/displacer.cpp, MeshDisplace/displacer.h, PtexExtractor/PtexLayout.cpp, PtexExtractor/PtexLayout.h, PtexExtractor/PtexUtilizer.cpp, and PtexExtractor/PtexUtilizer.h.

Definition at line 140 of file qwidget.h.

#include <qwidget.h>

Inheritance diagram for QWidget:
Inheritance graph
[legend]

List of all members.

Public Types

enum   RenderFlag { DrawWindowBackground = 0x1, DrawChildren = 0x2, IgnoreMask = 0x4 }

Public Slots

void  setEnabled (bool)
void  setDisabled (bool)
void  setWindowModified (bool)
void  setWindowTitle (const QString &)
void  setStyleSheet (const QString &styleSheet)
void  setFocus ()
void  update ()
void  repaint ()
virtual void  setVisible (bool visible)
void  setHidden (bool hidden)
void  show ()
void  hide ()
QT_MOC_COMPAT void  setShown (bool shown)
void  showMinimized ()
void  showMaximized ()
void  showFullScreen ()
void  showNormal ()
bool  close ()
void  raise ()
void  lower ()

Signals

void  customContextMenuRequested (const QPoint &pos)

Public Member Functions

  QWidget (QWidget *parent=0, Qt::WindowFlags f=0)
  ~QWidget ()
int  devType () const
WId  winId () const
void  createWinId ()
WId  internalWinId () const
WId  effectiveWinId () const
QStyle style () const
void  setStyle (QStyle *)
bool  isTopLevel () const
bool  isWindow () const
bool  isModal () const
Qt::WindowModality  windowModality () const
void  setWindowModality (Qt::WindowModality windowModality)
bool  isEnabled () const
bool  isEnabledTo (QWidget *) const
bool  isEnabledToTLW () const
QRect  frameGeometry () const
const QRect geometry () const
QRect  normalGeometry () const
int  x () const
int  y () const
QPoint  pos () const
QSize  frameSize () const
QSize  size () const
int  width () const
int  height () const
QRect  rect () const
QRect  childrenRect () const
QRegion  childrenRegion () const
QSize  minimumSize () const
QSize  maximumSize () const
int  minimumWidth () const
int  minimumHeight () const
int  maximumWidth () const
int  maximumHeight () const
void  setMinimumSize (const QSize &)
void  setMinimumSize (int minw, int minh)
void  setMaximumSize (const QSize &)
void  setMaximumSize (int maxw, int maxh)
void  setMinimumWidth (int minw)
void  setMinimumHeight (int minh)
void  setMaximumWidth (int maxw)
void  setMaximumHeight (int maxh)
QSize  sizeIncrement () const
void  setSizeIncrement (const QSize &)
void  setSizeIncrement (int w, int h)
QSize  baseSize () const
void  setBaseSize (const QSize &)
void  setBaseSize (int basew, int baseh)
void  setFixedSize (const QSize &)
void  setFixedSize (int w, int h)
void  setFixedWidth (int w)
void  setFixedHeight (int h)
QPoint  mapToGlobal (const QPoint &) const
QPoint  mapFromGlobal (const QPoint &) const
QPoint  mapToParent (const QPoint &) const
QPoint  mapFromParent (const QPoint &) const
QPoint  mapTo (QWidget *, const QPoint &) const
QPoint  mapFrom (QWidget *, const QPoint &) const
QWidget window () const
QWidget nativeParentWidget () const
QWidget topLevelWidget () const
const QPalette palette () const
void  setPalette (const QPalette &)
void  setBackgroundRole (QPalette::ColorRole)
QPalette::ColorRole  backgroundRole () const
void  setForegroundRole (QPalette::ColorRole)
QPalette::ColorRole  foregroundRole () const
const QFont font () const
void  setFont (const QFont &)
QFontMetrics  fontMetrics () const
QFontInfo  fontInfo () const
QCursor  cursor () const
void  setCursor (const QCursor &)
void  unsetCursor ()
void  setMouseTracking (bool enable)
bool  hasMouseTracking () const
bool  underMouse () const
void  setMask (const QBitmap &)
void  setMask (const QRegion &)
QRegion  mask () const
void  clearMask ()
void  render (QPaintDevice *target, const QPoint &targetOffset=QPoint(), const QRegion &sourceRegion=QRegion(), RenderFlags renderFlags=RenderFlags(DrawWindowBackground|DrawChildren))
void  render (QPainter *painter, const QPoint &targetOffset=QPoint(), const QRegion &sourceRegion=QRegion(), RenderFlags renderFlags=RenderFlags(DrawWindowBackground|DrawChildren))
QGraphicsEffect graphicsEffect () const
void  setGraphicsEffect (QGraphicsEffect *effect)
void  grabGesture (Qt::GestureType type, Qt::GestureFlags flags=Qt::GestureFlags())
void  ungrabGesture (Qt::GestureType type)
QString  styleSheet () const
QString  windowTitle () const
void  setWindowIcon (const QIcon &icon)
QIcon  windowIcon () const
void  setWindowIconText (const QString &)
QString  windowIconText () const
void  setWindowRole (const QString &)
QString  windowRole () const
void  setWindowFilePath (const QString &filePath)
QString  windowFilePath () const
void  setWindowOpacity (qreal level)
qreal  windowOpacity () const
bool  isWindowModified () const
void  setToolTip (const QString &)
QString  toolTip () const
void  setStatusTip (const QString &)
QString  statusTip () const
void  setWhatsThis (const QString &)
QString  whatsThis () const
QString  accessibleName () const
void  setAccessibleName (const QString &name)
QString  accessibleDescription () const
void  setAccessibleDescription (const QString &description)
void  setLayoutDirection (Qt::LayoutDirection direction)
Qt::LayoutDirection  layoutDirection () const
void  unsetLayoutDirection ()
void  setLocale (const QLocale &locale)
QLocale  locale () const
void  unsetLocale ()
bool  isRightToLeft () const
bool  isLeftToRight () const
bool  isActiveWindow () const
void  activateWindow ()
void  clearFocus ()
void  setFocus (Qt::FocusReason reason)
Qt::FocusPolicy  focusPolicy () const
void  setFocusPolicy (Qt::FocusPolicy policy)
bool  hasFocus () const
void  setFocusProxy (QWidget *)
QWidget focusProxy () const
Qt::ContextMenuPolicy  contextMenuPolicy () const
void  setContextMenuPolicy (Qt::ContextMenuPolicy policy)
void  grabMouse ()
void  grabMouse (const QCursor &)
void  releaseMouse ()
void  grabKeyboard ()
void  releaseKeyboard ()
int  grabShortcut (const QKeySequence &key, Qt::ShortcutContext context=Qt::WindowShortcut)
void  releaseShortcut (int id)
void  setShortcutEnabled (int id, bool enable=true)
void  setShortcutAutoRepeat (int id, bool enable=true)
bool  updatesEnabled () const
void  setUpdatesEnabled (bool enable)
QGraphicsProxyWidget graphicsProxyWidget () const
void  update (int x, int y, int w, int h)
void  update (const QRect &)
void  update (const QRegion &)
void  repaint (int x, int y, int w, int h)
void  repaint (const QRect &)
void  repaint (const QRegion &)
void  stackUnder (QWidget *)
void  move (int x, int y)
void  move (const QPoint &)
void  resize (int w, int h)
void  resize (const QSize &)
void  setGeometry (int x, int y, int w, int h)
void  setGeometry (const QRect &)
QByteArray  saveGeometry () const
bool  restoreGeometry (const QByteArray &geometry)
void  adjustSize ()
bool  isVisible () const
bool  isVisibleTo (QWidget *) const
bool  isHidden () const
bool  isMinimized () const
bool  isMaximized () const
bool  isFullScreen () const
Qt::WindowStates  windowState () const
void  setWindowState (Qt::WindowStates state)
void  overrideWindowState (Qt::WindowStates state)
virtual QSize  sizeHint () const
virtual QSize  minimumSizeHint () const
QSizePolicy  sizePolicy () const
void  setSizePolicy (QSizePolicy)
void  setSizePolicy (QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical)
virtual int  heightForWidth (int) const
QRegion  visibleRegion () const
void  setContentsMargins (int left, int top, int right, int bottom)
void  setContentsMargins (const QMargins &margins)
void  getContentsMargins (int *left, int *top, int *right, int *bottom) const
QMargins  contentsMargins () const
QRect  contentsRect () const
QLayout layout () const
void  setLayout (QLayout *)
void  updateGeometry ()
void  setParent (QWidget *parent)
void  setParent (QWidget *parent, Qt::WindowFlags f)
void  scroll (int dx, int dy)
void  scroll (int dx, int dy, const QRect &)
QWidget focusWidget () const
QWidget nextInFocusChain () const
QWidget previousInFocusChain () const
bool  acceptDrops () const
void  setAcceptDrops (bool on)
void  addAction (QAction *action)
void  addActions (QList< QAction * > actions)
void  insertAction (QAction *before, QAction *action)
void  insertActions (QAction *before, QList< QAction * > actions)
void  removeAction (QAction *action)
QList< QAction * >  actions () const
QWidget parentWidget () const
void  setWindowFlags (Qt::WindowFlags type)
Qt::WindowFlags  windowFlags () const
void  overrideWindowFlags (Qt::WindowFlags type)
Qt::WindowType  windowType () const
QWidget childAt (int x, int y) const
QWidget childAt (const QPoint &p) const
Qt::HANDLE  handle () const
void  setAttribute (Qt::WidgetAttribute, bool on=true)
bool  testAttribute (Qt::WidgetAttribute) const
QPaintEngine paintEngine () const
void  ensurePolished () const
QInputContext inputContext ()
void  setInputContext (QInputContext *)
bool  isAncestorOf (const QWidget *child) const
bool  autoFillBackground () const
void  setAutoFillBackground (bool enabled)
void  setWindowSurface (QWindowSurface *surface)
QWindowSurface *  windowSurface () const
virtual QVariant  inputMethodQuery (Qt::InputMethodQuery) const
Qt::InputMethodHints  inputMethodHints () const
void  setInputMethodHints (Qt::InputMethodHints hints)

Static Public Member Functions

static void  setTabOrder (QWidget *, QWidget *)
static QWidget mouseGrabber ()
static QWidget keyboardGrabber ()
static QWidget find (WId)

Protected Slots

void  updateMicroFocus ()

Protected Member Functions

bool  event (QEvent *)
virtual void  mousePressEvent (QMouseEvent *)
virtual void  mouseReleaseEvent (QMouseEvent *)
virtual void  mouseDoubleClickEvent (QMouseEvent *)
virtual void  mouseMoveEvent (QMouseEvent *)
virtual void  wheelEvent (QWheelEvent *)
virtual void  keyPressEvent (QKeyEvent *)
virtual void  keyReleaseEvent (QKeyEvent *)
virtual void  focusInEvent (QFocusEvent *)
virtual void  focusOutEvent (QFocusEvent *)
virtual void  enterEvent (QEvent *)
virtual void  leaveEvent (QEvent *)
virtual void  paintEvent (QPaintEvent *)
virtual void  moveEvent (QMoveEvent *)
virtual void  resizeEvent (QResizeEvent *)
virtual void  closeEvent (QCloseEvent *)
virtual void  contextMenuEvent (QContextMenuEvent *)
virtual void  tabletEvent (QTabletEvent *)
virtual void  actionEvent (QActionEvent *)
virtual void  dragEnterEvent (QDragEnterEvent *)
virtual void  dragMoveEvent (QDragMoveEvent *)
virtual void  dragLeaveEvent (QDragLeaveEvent *)
virtual void  dropEvent (QDropEvent *)
virtual void  showEvent (QShowEvent *)
virtual void  hideEvent (QHideEvent *)
virtual void  changeEvent (QEvent *)
int  metric (PaintDeviceMetric) const
virtual void  inputMethodEvent (QInputMethodEvent *)
void  resetInputContext ()
void  create (WId=0, bool initializeWindow=true, bool destroyOldWindow=true)
void  destroy (bool destroyWindow=true, bool destroySubWindows=true)
virtual bool  focusNextPrevChild (bool next)
bool  focusNextChild ()
bool  focusPreviousChild ()
  QWidget (QWidgetPrivate &d, QWidget *parent, Qt::WindowFlags f)
virtual void  styleChange (QStyle &)
virtual void  enabledChange (bool)
virtual void  paletteChange (const QPalette &)
virtual void  fontChange (const QFont &)
virtual void  windowActivationChange (bool)
virtual void  languageChange ()

Properties

bool  modal
Qt::WindowModality  windowModality
bool  enabled
QRect  geometry
QRect  frameGeometry
QRect  normalGeometry
int  x
int  y
QPoint  pos
QSize  frameSize
QSize  size
int  width
int  height
QRect  rect
QRect  childrenRect
QRegion  childrenRegion
QSizePolicy  sizePolicy
QSize  minimumSize
QSize  maximumSize
int  minimumWidth
int  minimumHeight
int  maximumWidth
int  maximumHeight
QSize  sizeIncrement
QSize  baseSize
QPalette  palette
QFont  font
QCursor  cursor
bool  mouseTracking
bool  isActiveWindow
Qt::FocusPolicy  focusPolicy
bool  focus
Qt::ContextMenuPolicy  contextMenuPolicy
bool  updatesEnabled
bool  visible
bool  minimized
bool  maximized
bool  fullScreen
QSize  sizeHint
QSize  minimumSizeHint
bool  acceptDrops
QString  windowTitle
QIcon  windowIcon
QString  windowIconText
double  windowOpacity
bool  windowModified
QString  toolTip
QString  statusTip
QString  whatsThis
QString  accessibleName
QString  accessibleDescription
Qt::LayoutDirection  layoutDirection
bool  autoFillBackground
QString  styleSheet
QLocale  locale
QString  windowFilePath
Qt::InputMethodHints  inputMethodHints

Friends

class  QBackingStoreDevice
class  QWidgetBackingStore
class  QApplication
class  QApplicationPrivate
class  QBaseApplication
class  QPainter
class  QPainterPrivate
class  QPixmap
class  QFontMetrics
class  QFontInfo
class  QETWidget
class  QLayout
class  QWidgetItem
class  QWidgetItemV2
class  QGLContext
class  QGLWidget
class  QGLWindowSurface
class  QX11PaintEngine
class  QWin32PaintEngine
class  QShortcutPrivate
class  QShortcutMap
class  QWindowSurface
class  QGraphicsProxyWidget
class  QGraphicsProxyWidgetPrivate
class  QStyleSheetStyle
struct  QWidgetExceptionCleaner
class  QGestureManager
class  QWinNativePanGestureRecognizer
class  QWidgetEffectSourcePrivate
Q_GUI_EXPORT QWidgetData qt_qwidget_data (QWidget *widget)
Q_GUI_EXPORT QWidgetPrivate *  qt_widget_private (QWidget *widget)

Member Enumeration Documentation

enum RenderFlag
Enumerator:
DrawWindowBackground 
DrawChildren 
IgnoreMask 

Definition at line 217 of file qwidget.h.

                    {
        DrawWindowBackground = 0x1,
        DrawChildren = 0x2,
        IgnoreMask = 0x4
    };

Constructor & Destructor Documentation

QWidget ( QWidget parent = 0,
Qt::WindowFlags  f = 0 
) [explicit]
~QWidget ( )
QWidget ( QWidgetPrivate &  d,
QWidget parent,
Qt::WindowFlags  f 
) [protected]

Member Function Documentation

int devType ( ) const [virtual]
WId winId ( ) const
void createWinId ( )
WId internalWinId ( ) const [inline]

Definition at line 234 of file qwidget.h.

{ return data->winid; }
WId effectiveWinId ( ) const
QStyle* style ( ) const
void setStyle ( QStyle )
bool isTopLevel ( ) const [inline]

Definition at line 928 of file qwidget.h.

{ return (windowType() & Qt::Window); }
bool isWindow ( ) const [inline]

Definition at line 931 of file qwidget.h.

{ return (windowType() & Qt::Window); }
bool isModal ( ) const [inline]

Definition at line 937 of file qwidget.h.

{ return data->window_modality != Qt::NonModal; }
Qt::WindowModality windowModality ( ) const
void setWindowModality ( Qt::WindowModality  windowModality )
bool isEnabled ( ) const [inline]

Definition at line 934 of file qwidget.h.

bool isEnabledTo ( QWidget ) const
bool isEnabledToTLW ( ) const [inline]

Definition at line 940 of file qwidget.h.

{ return isEnabled(); }
void setEnabled ( bool  ) [slot]
void setDisabled ( bool  ) [slot]
void setWindowModified ( bool  ) [slot]
QRect frameGeometry ( ) const
const QRect& geometry ( ) const
QRect normalGeometry ( ) const
int x ( ) const
int y ( ) const
QPoint pos ( ) const
QSize frameSize ( ) const
QSize size ( ) const
int width ( ) const [inline]
int height ( ) const [inline]
QRect rect ( ) const [inline]
QRect childrenRect ( ) const
QRegion childrenRegion ( ) const
QSize minimumSize ( ) const
QSize maximumSize ( ) const
int minimumWidth ( ) const
int minimumHeight ( ) const
int maximumWidth ( ) const
int maximumHeight ( ) const
void setMinimumSize ( const QSize s ) [inline]

Definition at line 955 of file qwidget.h.

{ setMinimumSize(s.width(),s.height()); }
void setMinimumSize ( int  minw,
int  minh 
)
void setMaximumSize ( const QSize s ) [inline]

Definition at line 958 of file qwidget.h.

{ setMaximumSize(s.width(),s.height()); }
void setMaximumSize ( int  maxw,
int  maxh 
)
void setMinimumWidth ( int  minw )
void setMinimumHeight ( int  minh )
void setMaximumWidth ( int  maxw )
void setMaximumHeight ( int  maxh )
QSize sizeIncrement ( ) const
void setSizeIncrement ( const QSize s ) [inline]

Definition at line 961 of file qwidget.h.

{ setSizeIncrement(s.width(),s.height()); }
void setSizeIncrement ( int  w,
int  h 
)
QSize baseSize ( ) const
void setBaseSize ( const QSize s ) [inline]

Definition at line 964 of file qwidget.h.

{ setBaseSize(s.width(),s.height()); }
void setBaseSize ( int  basew,
int  baseh 
)
void setFixedSize ( const QSize )
void setFixedSize ( int  w,
int  h 
)
void setFixedWidth ( int  w )
void setFixedHeight ( int  h )
QPoint mapToGlobal ( const QPoint ) const
QPoint mapFromGlobal ( const QPoint ) const
QPoint mapToParent ( const QPoint ) const
QPoint mapFromParent ( const QPoint ) const
QPoint mapTo ( QWidget ,
const QPoint  
) const
QPoint mapFrom ( QWidget ,
const QPoint  
) const
QWidget* window ( ) const
QWidget* nativeParentWidget ( ) const
QWidget* topLevelWidget ( ) const [inline]

Definition at line 318 of file qwidget.h.

{ return window(); }
const QPalette& palette ( ) const
void setPalette ( const QPalette )
void setBackgroundRole ( QPalette::ColorRole  )
QPalette::ColorRole backgroundRole ( ) const
void setForegroundRole ( QPalette::ColorRole  )
QPalette::ColorRole foregroundRole ( ) const
const QFont& font ( ) const
void setFont ( const QFont )
QFontMetrics fontMetrics ( ) const [inline]

Definition at line 970 of file qwidget.h.

{ return QFontMetrics(data->fnt); }
QFontInfo fontInfo ( ) const [inline]

Definition at line 973 of file qwidget.h.

{ return QFontInfo(data->fnt); }
QCursor cursor ( ) const
void setCursor ( const QCursor )
void unsetCursor ( )
void setMouseTracking ( bool  enable ) [inline]

Reimplemented in QGLWidget.

Definition at line 976 of file qwidget.h.

bool hasMouseTracking ( ) const [inline]
bool underMouse ( ) const [inline]

Definition at line 982 of file qwidget.h.

void setMask ( const QBitmap )
void setMask ( const QRegion )
QRegion mask ( ) const
void clearMask ( )
void render ( QPaintDevice target,
const QPoint targetOffset = QPoint(),
const QRegion sourceRegion = QRegion(),
RenderFlags  renderFlags = RenderFlags(DrawWindowBackground|DrawChildren) 
)
void render ( QPainter painter,
const QPoint targetOffset = QPoint(),
const QRegion sourceRegion = QRegion(),
RenderFlags  renderFlags = RenderFlags(DrawWindowBackground|DrawChildren) 
)
QGraphicsEffect* graphicsEffect ( ) const
void setGraphicsEffect ( QGraphicsEffect effect )
void grabGesture ( Qt::GestureType  type,
Qt::GestureFlags  flags = Qt::GestureFlags() 
)
void ungrabGesture ( Qt::GestureType  type )
void setWindowTitle ( const QString ) [slot]
void setStyleSheet ( const QString styleSheet ) [slot]
QString styleSheet ( ) const
QString windowTitle ( ) const
void setWindowIcon ( const QIcon icon )
QIcon windowIcon ( ) const
void setWindowIconText ( const QString )
QString windowIconText ( ) const
void setWindowRole ( const QString )
QString windowRole ( ) const
void setWindowFilePath ( const QString filePath )
QString windowFilePath ( ) const
void setWindowOpacity ( qreal  level )
qreal windowOpacity ( ) const
bool isWindowModified ( ) const
void setToolTip ( const QString )
QString toolTip ( ) const
void setStatusTip ( const QString )
QString statusTip ( ) const
void setWhatsThis ( const QString )
QString whatsThis ( ) const
QString accessibleName ( ) const
void setAccessibleName ( const QString name )
QString accessibleDescription ( ) const
void setAccessibleDescription ( const QString description )
void setLayoutDirection ( Qt::LayoutDirection  direction )
Qt::LayoutDirection layoutDirection ( ) const
void unsetLayoutDirection ( )
void setLocale ( const QLocale locale )
QLocale locale ( ) const
void unsetLocale ( )
bool isRightToLeft ( ) const [inline]

Definition at line 418 of file qwidget.h.

{ return layoutDirection() == Qt::RightToLeft; }
bool isLeftToRight ( ) const [inline]

Definition at line 419 of file qwidget.h.

{ return layoutDirection() == Qt::LeftToRight; }
void setFocus ( ) [inline, slot]
bool isActiveWindow ( ) const
void activateWindow ( )
void clearFocus ( )
void setFocus ( Qt::FocusReason  reason )
Qt::FocusPolicy focusPolicy ( ) const
void setFocusPolicy ( Qt::FocusPolicy  policy )
bool hasFocus ( ) const
static void setTabOrder ( QWidget ,
QWidget  
) [static]
void setFocusProxy ( QWidget )
QWidget* focusProxy ( ) const
Qt::ContextMenuPolicy contextMenuPolicy ( ) const
void setContextMenuPolicy ( Qt::ContextMenuPolicy  policy )
void grabMouse ( )
void grabMouse ( const QCursor )
void releaseMouse ( )
void grabKeyboard ( )
void releaseKeyboard ( )
int grabShortcut ( const QKeySequence key,
Qt::ShortcutContext  context = Qt::WindowShortcut 
)
void releaseShortcut ( int  id )
void setShortcutEnabled ( int  id,
bool  enable = true 
)
void setShortcutAutoRepeat ( int  id,
bool  enable = true 
)
static QWidget* mouseGrabber ( ) [static]
static QWidget* keyboardGrabber ( ) [static]
bool updatesEnabled ( ) const [inline]
void setUpdatesEnabled ( bool  enable )
QGraphicsProxyWidget* graphicsProxyWidget ( ) const
void update ( ) [slot]
void repaint ( ) [slot]
void update ( int  x,
int  y,
int  w,
int  h 
) [inline]

Definition at line 988 of file qwidget.h.

{ update(QRect(ax, ay, aw, ah)); }
void update ( const QRect )
void update ( const QRegion )
void repaint ( int  x,
int  y,
int  w,
int  h 
)
void repaint ( const QRect )
void repaint ( const QRegion )
virtual void setVisible ( bool  visible ) [virtual, slot]
void setHidden ( bool  hidden ) [inline, slot]

Definition at line 485 of file qwidget.h.

{ setVisible(!hidden); }
void show ( ) [inline, slot]
Examples:
MeshDisplace/displacer.cpp.

Definition at line 487 of file qwidget.h.

{ setVisible(true); }
void hide ( ) [inline, slot]

Definition at line 491 of file qwidget.h.

{ setVisible(false); }
QT_MOC_COMPAT void setShown ( bool  shown ) [inline, slot]

Definition at line 492 of file qwidget.h.

{ setVisible(shown); }
void showMinimized ( ) [slot]
void showMaximized ( ) [slot]
void showFullScreen ( ) [slot]
void showNormal ( ) [slot]
bool close ( ) [slot]
void raise ( ) [slot]
void lower ( ) [slot]
void stackUnder ( QWidget )
void move ( int  x,
int  y 
) [inline]

Reimplemented in QRubberBand.

Definition at line 997 of file qwidget.h.

{ move(QPoint(ax, ay)); }
void move ( const QPoint )
void resize ( int  w,
int  h 
) [inline]

Reimplemented in QRubberBand.

Examples:
MeshDisplace/displacer.cpp.

Definition at line 1000 of file qwidget.h.

{ resize(QSize(w, h)); }
void resize ( const QSize )
void setGeometry ( int  x,
int  y,
int  w,
int  h 
) [inline]

Reimplemented in QRubberBand.

Definition at line 1003 of file qwidget.h.

{ setGeometry(QRect(ax, ay, aw, ah)); }
void setGeometry ( const QRect )
QByteArray saveGeometry ( ) const
bool restoreGeometry ( const QByteArray geometry )
void adjustSize ( )
bool isVisible ( ) const [inline]
bool isVisibleTo ( QWidget ) const
bool isHidden ( ) const [inline]
bool isMinimized ( ) const
bool isMaximized ( ) const
bool isFullScreen ( ) const
Qt::WindowStates windowState ( ) const
void setWindowState ( Qt::WindowStates  state )
void overrideWindowState ( Qt::WindowStates  state )
virtual QSize sizeHint ( ) const [virtual]
virtual QSize minimumSizeHint ( ) const [virtual]
QSizePolicy sizePolicy ( ) const
void setSizePolicy ( QSizePolicy  )
void setSizePolicy ( QSizePolicy::Policy  horizontal,
QSizePolicy::Policy  vertical 
) [inline]

Definition at line 1024 of file qwidget.h.

{ setSizePolicy(QSizePolicy(hor, ver)); }
virtual int heightForWidth ( int  ) const [virtual]
QRegion visibleRegion ( ) const
void setContentsMargins ( int  left,
int  top,
int  right,
int  bottom 
)
void setContentsMargins ( const QMargins margins )
void getContentsMargins ( int *  left,
int *  top,
int *  right,
int *  bottom 
) const
QMargins contentsMargins ( ) const
QRect contentsRect ( ) const
QLayout* layout ( ) const
void setLayout ( QLayout )
void updateGeometry ( )
void setParent ( QWidget parent )
void setParent ( QWidget parent,
Qt::WindowFlags  f 
)
void scroll ( int  dx,
int  dy 
)
void scroll ( int  dx,
int  dy,
const QRect  
)
QWidget* focusWidget ( ) const
QWidget* nextInFocusChain ( ) const
QWidget* previousInFocusChain ( ) const
bool acceptDrops ( ) const
void setAcceptDrops ( bool  on )
void addAction ( QAction action )
void addActions ( QList< QAction * >  actions )
void insertAction ( QAction before,
QAction action 
)
void insertActions ( QAction before,
QList< QAction * >  actions 
)
void removeAction ( QAction action )
QList<QAction*> actions ( ) const
QWidget * parentWidget ( ) const [inline]

Definition at line 1021 of file qwidget.h.

{ return static_cast<QWidget *>(QObject::parent()); }
void setWindowFlags ( Qt::WindowFlags  type )
Qt::WindowFlags windowFlags ( ) const [inline]

Definition at line 925 of file qwidget.h.

{ return data->window_flags; }
void overrideWindowFlags ( Qt::WindowFlags  type )
Qt::WindowType windowType ( ) const [inline]

Definition at line 923 of file qwidget.h.

{ return static_cast<Qt::WindowType>(int(data->window_flags & Qt::WindowType_Mask)); }
static QWidget* find ( WId  ) [static]
QWidget * childAt ( int  x,
int  y 
) const [inline]

Definition at line 920 of file qwidget.h.

{ return childAt(QPoint(ax, ay)); }
QWidget* childAt ( const QPoint p ) const
Qt::HANDLE handle ( ) const
void setAttribute ( Qt::WidgetAttribute  ,
bool  on = true 
)
bool testAttribute ( Qt::WidgetAttribute  attribute ) const [inline]

Definition at line 1027 of file qwidget.h.

{
    if (attribute < int(8*sizeof(uint)))
        return data->widget_attributes & (1<<attribute);
    return testAttribute_helper(attribute);
}
QPaintEngine* paintEngine ( ) const [virtual]

Implements QPaintDevice.

Reimplemented in QGLWidget.

void ensurePolished ( ) const
QInputContext* inputContext ( )
void setInputContext ( QInputContext )
bool isAncestorOf ( const QWidget child ) const
bool autoFillBackground ( ) const
void setAutoFillBackground ( bool  enabled )
void setWindowSurface ( QWindowSurface *  surface )
QWindowSurface* windowSurface ( ) const
void customContextMenuRequested ( const QPoint pos ) [signal]
bool event ( QEvent ) [protected, virtual]
virtual void mousePressEvent ( QMouseEvent ) [protected, virtual]
virtual void mouseReleaseEvent ( QMouseEvent ) [protected, virtual]
virtual void mouseDoubleClickEvent ( QMouseEvent ) [protected, virtual]
virtual void mouseMoveEvent ( QMouseEvent ) [protected, virtual]
virtual void wheelEvent ( QWheelEvent ) [protected, virtual]
virtual void keyPressEvent ( QKeyEvent ) [protected, virtual]
virtual void keyReleaseEvent ( QKeyEvent ) [protected, virtual]
virtual void focusInEvent ( QFocusEvent ) [protected, virtual]
virtual void focusOutEvent ( QFocusEvent ) [protected, virtual]
virtual void enterEvent ( QEvent ) [protected, virtual]
virtual void leaveEvent ( QEvent ) [protected, virtual]
virtual void paintEvent ( QPaintEvent ) [protected, virtual]
virtual void moveEvent ( QMoveEvent ) [protected, virtual]
virtual void resizeEvent ( QResizeEvent ) [protected, virtual]
virtual void closeEvent ( QCloseEvent ) [protected, virtual]
virtual void contextMenuEvent ( QContextMenuEvent ) [protected, virtual]
virtual void tabletEvent ( QTabletEvent ) [protected, virtual]
virtual void actionEvent ( QActionEvent ) [protected, virtual]
virtual void dragEnterEvent ( QDragEnterEvent ) [protected, virtual]
virtual void dragMoveEvent ( QDragMoveEvent ) [protected, virtual]
virtual void dragLeaveEvent ( QDragLeaveEvent ) [protected, virtual]
virtual void dropEvent ( QDropEvent ) [protected, virtual]
virtual void showEvent ( QShowEvent ) [protected, virtual]
virtual void hideEvent ( QHideEvent ) [protected, virtual]
virtual void changeEvent ( QEvent ) [protected, virtual]
int metric ( PaintDeviceMetric  ) const [protected, virtual]
virtual void inputMethodEvent ( QInputMethodEvent ) [protected, virtual]
virtual QVariant inputMethodQuery ( Qt::InputMethodQuery  ) const [virtual]
Qt::InputMethodHints inputMethodHints ( ) const
void setInputMethodHints ( Qt::InputMethodHints  hints )
void resetInputContext ( ) [protected]
void updateMicroFocus ( ) [protected, slot]
void create ( WId  = 0,
bool  initializeWindow = true,
bool  destroyOldWindow = true 
) [protected]
void destroy ( bool  destroyWindow = true,
bool  destroySubWindows = true 
) [protected]
virtual bool focusNextPrevChild ( bool  next ) [protected, virtual]
bool focusNextChild ( ) [inline, protected]

Definition at line 710 of file qwidget.h.

{ return focusNextPrevChild(true); }
bool focusPreviousChild ( ) [inline, protected]

Definition at line 711 of file qwidget.h.

{ return focusNextPrevChild(false); }
virtual void styleChange ( QStyle ) [protected, virtual]
virtual void enabledChange ( bool  ) [protected, virtual]
virtual void paletteChange ( const QPalette ) [protected, virtual]
virtual void fontChange ( const QFont ) [protected, virtual]
virtual void windowActivationChange ( bool  ) [protected, virtual]
virtual void languageChange ( ) [protected, virtual]

Friends And Related Function Documentation

friend class QBackingStoreDevice [friend]

Definition at line 721 of file qwidget.h.

friend class QWidgetBackingStore [friend]

Definition at line 722 of file qwidget.h.

friend class QApplication [friend]

Reimplemented from QObject.

Reimplemented in QDesktopWidget.

Definition at line 723 of file qwidget.h.

friend class QApplicationPrivate [friend]

Reimplemented from QObject.

Reimplemented in QDesktopWidget.

Definition at line 724 of file qwidget.h.

friend class QBaseApplication [friend]

Definition at line 725 of file qwidget.h.

friend class QPainter [friend]

Reimplemented from QPaintDevice.

Definition at line 726 of file qwidget.h.

friend class QPainterPrivate [friend]

Definition at line 727 of file qwidget.h.

friend class QPixmap [friend]

Definition at line 728 of file qwidget.h.

friend class QFontMetrics [friend]

Definition at line 729 of file qwidget.h.

friend class QFontInfo [friend]

Definition at line 730 of file qwidget.h.

friend class QETWidget [friend]

Definition at line 731 of file qwidget.h.

friend class QLayout [friend]

Definition at line 732 of file qwidget.h.

friend class QWidgetItem [friend]

Definition at line 733 of file qwidget.h.

friend class QWidgetItemV2 [friend]

Definition at line 734 of file qwidget.h.

friend class QGLContext [friend]

Reimplemented in QGLWidget.

Definition at line 735 of file qwidget.h.

friend class QGLWidget [friend]

Definition at line 736 of file qwidget.h.

friend class QGLWindowSurface [friend]

Definition at line 737 of file qwidget.h.

friend class QX11PaintEngine [friend]

Reimplemented from QPaintDevice.

Definition at line 738 of file qwidget.h.

friend class QWin32PaintEngine [friend]

Definition at line 739 of file qwidget.h.

friend class QShortcutPrivate [friend]

Definition at line 740 of file qwidget.h.

friend class QShortcutMap [friend]

Definition at line 741 of file qwidget.h.

friend class QWindowSurface [friend]

Definition at line 742 of file qwidget.h.

friend class QGraphicsProxyWidget [friend]

Definition at line 743 of file qwidget.h.

friend class QGraphicsProxyWidgetPrivate [friend]

Definition at line 744 of file qwidget.h.

friend class QStyleSheetStyle [friend]

Definition at line 745 of file qwidget.h.

friend struct QWidgetExceptionCleaner [friend]

Definition at line 746 of file qwidget.h.

friend class QGestureManager [friend]

Definition at line 748 of file qwidget.h.

friend class QWinNativePanGestureRecognizer [friend]

Definition at line 749 of file qwidget.h.

friend class QWidgetEffectSourcePrivate [friend]

Definition at line 751 of file qwidget.h.

Q_GUI_EXPORT QWidgetData* qt_qwidget_data ( QWidget widget ) [friend]
Q_GUI_EXPORT QWidgetPrivate* qt_widget_private ( QWidget widget ) [friend]

Property Documentation

bool modal [read]

Reimplemented in QDialog.

Definition at line 145 of file qwidget.h.

Qt::WindowModality windowModality [read, write]

Definition at line 146 of file qwidget.h.

bool enabled [read, write]

Definition at line 147 of file qwidget.h.

const QRect & geometry [inline, read, write]

Definition at line 148 of file qwidget.h.

QRect frameGeometry [read]

Definition at line 149 of file qwidget.h.

QRect normalGeometry [read]

Definition at line 150 of file qwidget.h.

int x [read]

Definition at line 151 of file qwidget.h.

int y [read]

Definition at line 152 of file qwidget.h.

QPoint pos [read, write]

Definition at line 153 of file qwidget.h.

QSize frameSize [read]

Definition at line 154 of file qwidget.h.

QSize size [inline, read, write]
Examples:
MeshDisplace/displacer.cpp.

Definition at line 155 of file qwidget.h.

int width [inline, read]

Definition at line 156 of file qwidget.h.

int height [inline, read]

Definition at line 157 of file qwidget.h.

QRect rect [inline, read]

Definition at line 158 of file qwidget.h.

QRect childrenRect [read]

Definition at line 159 of file qwidget.h.

QRegion childrenRegion [read]

Definition at line 160 of file qwidget.h.

QSizePolicy sizePolicy [read, write]

Definition at line 161 of file qwidget.h.

QSize minimumSize [read, write]

Definition at line 162 of file qwidget.h.

QSize maximumSize [read, write]

Definition at line 163 of file qwidget.h.

int minimumWidth [inline, read, write]

Definition at line 164 of file qwidget.h.

int minimumHeight [inline, read, write]

Definition at line 165 of file qwidget.h.

int maximumWidth [inline, read, write]

Definition at line 166 of file qwidget.h.

int maximumHeight [inline, read, write]

Definition at line 167 of file qwidget.h.

QSize sizeIncrement [read, write]

Definition at line 168 of file qwidget.h.

QSize baseSize [read, write]

Definition at line 169 of file qwidget.h.

QPalette palette [read, write]

Definition at line 170 of file qwidget.h.

const QFont & font [inline, read, write]

Definition at line 171 of file qwidget.h.

QCursor cursor [read, write]

Definition at line 173 of file qwidget.h.

bool mouseTracking [read, write]

Definition at line 175 of file qwidget.h.

bool isActiveWindow [read]

Definition at line 176 of file qwidget.h.

Qt::FocusPolicy focusPolicy [read, write]

Definition at line 177 of file qwidget.h.

bool focus [read]

Definition at line 178 of file qwidget.h.

Qt::ContextMenuPolicy contextMenuPolicy [read, write]

Definition at line 179 of file qwidget.h.

bool updatesEnabled [inline, read, write]

Definition at line 180 of file qwidget.h.

bool visible [read, write]

Definition at line 181 of file qwidget.h.

bool minimized [read]

Definition at line 182 of file qwidget.h.

bool maximized [read]

Definition at line 183 of file qwidget.h.

bool fullScreen [read]

Reimplemented in VideoWidget.

Definition at line 184 of file qwidget.h.

QSize sizeHint [read]

Definition at line 185 of file qwidget.h.

QSize minimumSizeHint [read]

Definition at line 186 of file qwidget.h.

bool acceptDrops [read, write]

Definition at line 187 of file qwidget.h.

QString windowTitle [read, write]

Reimplemented in QDockWidget.

Definition at line 188 of file qwidget.h.

QIcon windowIcon [read, write]

Definition at line 189 of file qwidget.h.

QString windowIconText [read, write]

Definition at line 190 of file qwidget.h.

double windowOpacity [read, write]

Definition at line 191 of file qwidget.h.

bool windowModified [read, write]

Definition at line 192 of file qwidget.h.

QString toolTip [read, write]

Definition at line 194 of file qwidget.h.

QString statusTip [read, write]

Definition at line 197 of file qwidget.h.

QString whatsThis [read, write]

Definition at line 200 of file qwidget.h.

QString accessibleName [read, write]

Definition at line 203 of file qwidget.h.

QString accessibleDescription [read, write]

Definition at line 204 of file qwidget.h.

Qt::LayoutDirection layoutDirection [read, write]

Definition at line 206 of file qwidget.h.

bool autoFillBackground [read, write]

Definition at line 208 of file qwidget.h.

QString styleSheet [read, write]

Definition at line 210 of file qwidget.h.

QLocale locale [read, write]

Definition at line 212 of file qwidget.h.

QString windowFilePath [read, write]

Definition at line 213 of file qwidget.h.

Qt::InputMethodHints inputMethodHints [read, write]

Definition at line 214 of file qwidget.h.


The documentation for this class was generated from the following file:

QWidget QWidget QWidget QWidget QWidget QWidget QWidget QWidget QWidget QWidget
QWidget QWidget QWidget QWidget QWidget QWidget QWidget QWidget QWidget QWidget