Qt 4.8
Classes | Macros | Functions
qwidget.h File Reference
#include <QtCore/qconfig.h>
#include <QtGui/qwindowdefs.h>
#include <QtCore/qobject.h>
#include <QtCore/qmargins.h>
#include <QtGui/qpaintdevice.h>
#include <QtGui/qpalette.h>
#include <QtGui/qfont.h>
#include <QtGui/qfontmetrics.h>
#include <QtGui/qfontinfo.h>
#include <QtGui/qsizepolicy.h>
#include <QtGui/qregion.h>
#include <QtGui/qbrush.h>
#include <QtGui/qcursor.h>
#include <QtGui/qkeysequence.h>

Go to the source code of this file.

Classes

class  QWidget
 The QWidget class is the base class of all user interface objects. More...
 
class  QWidgetData
 

Macros

#define QWIDGETSIZE_MAX   ((1<<24)-1)
 Defines the maximum size for a QWidget object. More...
 

Functions

template<>
const QWidgetqobject_cast< const QWidget * > (const QObject *o)
 
template<>
QWidgetqobject_cast< QWidget * > (QObject *o)
 

Macro Definition Documentation

◆ QWIDGETSIZE_MAX

#define QWIDGETSIZE_MAX   ((1<<24)-1)

Function Documentation

◆ qobject_cast< const QWidget * >()

template<>
const QWidget* qobject_cast< const QWidget *> ( const QObject o)
inline

Definition at line 928 of file qwidget.h.

929 {
930  if (!o || !o->isWidgetType()) return 0;
931  return static_cast<const QWidget*>(o);
932 }
The QWidget class is the base class of all user interface objects.
Definition: qwidget.h:150
bool isWidgetType() const
Returns true if the object is a widget; otherwise returns false.
Definition: qobject.h:146

◆ qobject_cast< QWidget * >()

template<>
QWidget* qobject_cast< QWidget *> ( QObject o)
inline

Definition at line 923 of file qwidget.h.

924 {
925  if (!o || !o->isWidgetType()) return 0;
926  return static_cast<QWidget*>(o);
927 }
The QWidget class is the base class of all user interface objects.
Definition: qwidget.h:150
bool isWidgetType() const
Returns true if the object is a widget; otherwise returns false.
Definition: qobject.h:146