Class QWidget

Direct Known Subclasses:
QFrame, QMainWindow, TQRootCanvas

class QWidget
derived from QObject, QPaintDevice


Fields inherited from class Qt
color0, color1, black, white, darkGray, gray, lightGray, red, green, blue, cyan, magenta, yellow, darkRed, darkGreen, darkBlue, darkCyan, darkMagenta, darkYellow, arrowCursor, upArrowCursor, crossCursor, waitCursor, ibeamCursor, sizeVerCursor, sizeHorCursor, sizeBDiagCursor, sizeFDiagCursor, sizeAllCursor, blankCursor, splitVCursor, splitHCursor, pointingHandCursor, forbiddenCursor, whatsThisCursor

Constructor Summary
QWidget(QWidget * parent, const char * name, WFlags f)
           

Destructor Summary
~QWidget()
           

Method Summary
 const boolacceptDrops()
           
 virtual voidadjustSize()
           
 const boolautoMask()
           
 const const QBrush &backgroundBrush()
           
 const const QColor &backgroundColor()
           
 const BackgroundModebackgroundMode()
           
 const BackgroundOriginbackgroundOrigin()
           
 const const QPixmap *backgroundPixmap()
           
 const QSizebaseSize()
           
 const QStringcaption()
           
 const QWidget *childAt(int x, int y, bool includeThis)
           
 const QWidget *childAt(const QPoint & , bool includeThis)
           
 const QRectchildrenRect()
           
 const QRegionchildrenRegion()
           
 virtual const const char *className()
           
 voidclearFocus()
           
 voidclearMask()
           
 boolclose()
           
 virtual boolclose(bool alsoDelete)
           
 const const QColorGroup &colorGroup()
           
 const voidconstPolish()
           
 const const QCursor &cursor()
           
 virtual const boolcustomWhatsThis()
           
 voiddrawText(int x, int y, const QString & )
           
 voiddrawText(const QPoint & , const QString & )
           
 voiderase()
           
 voiderase(int x, int y, int w, int h)
           
 voiderase(const QRect & )
           
 voiderase(const QRegion & )
           
 const const QColor &eraseColor()
           
 const const QPixmap *erasePixmap()
           
 static QWidget *find(WId )
           
 const FocusPolicyfocusPolicy()
           
 const QWidget *focusProxy()
           
 const QWidget *focusWidget()
           
 const QFontfont()
           
 const QFontInfofontInfo()
           
 const QFontMetricsfontMetrics()
           
 const const QColor &foregroundColor()
           
 const QRectframeGeometry()
           
 const QSizeframeSize()
           
 const const QRect &geometry()
           
 voidgrabKeyboard()
           
 voidgrabMouse()
           
 voidgrabMouse(const QCursor & )
           
 const boolhasFocus()
           
 const boolhasMouse()
           
 const boolhasMouseTracking()
           
 const intheight()
           
 virtual const intheightForWidth(int )
           
 virtual voidhide()
           
 const const QPixmap *icon()
           
 voidiconify()
           
 const QStringiconText()
           
 const boolisActiveWindow()
           
 const boolisDesktop()
           
 const boolisDialog()
           
 const boolisEnabled()
           
 const boolisEnabledTo(QWidget * )
           
 const boolisEnabledToTLW()
           
 const boolisFocusEnabled()
           
 const boolisHidden()
           
 const boolisMaximized()
           
 const boolisMinimized()
           
 const boolisModal()
           
 const boolisPopup()
           
 const boolisTopLevel()
           
 const boolisUpdatesEnabled()
           
 const boolisVisible()
           
 const boolisVisibleTo(QWidget * )
           
 const boolisVisibleToTLW()
           
 static QWidget *keyboardGrabber()
           
 const QLayout *layout()
           
 voidlower()
           
 const QPointmapFrom(QWidget * , const QPoint & )
           
 const QPointmapFromGlobal(const QPoint & )
           
 const QPointmapFromParent(const QPoint & )
           
 const QPointmapTo(QWidget * , const QPoint & )
           
 const QPointmapToGlobal(const QPoint & )
           
 const QPointmapToParent(const QPoint & )
           
 const intmaximumHeight()
           
 const QSizemaximumSize()
           
 const intmaximumWidth()
           
 virtual const QMetaObject *metaObject()
           
 const QRectmicroFocusHint()
           
 const intminimumHeight()
           
 const QSizeminimumSize()
           
 virtual const QSizeminimumSizeHint()
           
 const intminimumWidth()
           
 static QWidget *mouseGrabber()
           
 virtual voidmove(int x, int y)
           
 voidmove(const QPoint & )
           
 const boolownCursor()
           
 const boolownFont()
           
 const boolownPalette()
           
 const const QPalette &palette()
           
 const const QColor &paletteBackgroundColor()
           
 const const QPixmap *paletteBackgroundPixmap()
           
 const const QColor &paletteForegroundColor()
           
 const QWidget *parentWidget(bool sameWindow)
           
 virtual voidpolish()
           
 const QPointpos()
           
 QObject *qObject()
           
 virtual void *qt_cast(const char * )
           
 virtual boolqt_emit(int , QUObject * )
           
 virtual boolqt_invoke(int , QUObject * )
           
 virtual boolqt_property(int , int , QVariant * )
           
 voidraise()
           
 voidrecreate(QWidget * parent, WFlags f, const QPoint & p, bool showIt)
           
 const QRectrect()
           
 voidreleaseKeyboard()
           
 voidreleaseMouse()
           
 voidrepaint()
           
 voidrepaint(bool erase)
           
 voidrepaint(int x, int y, int w, int h, bool erase)
           
 voidrepaint(const QRect & , bool erase)
           
 voidrepaint(const QRegion & , bool erase)
           
 virtual voidreparent(QWidget * parent, WFlags , const QPoint & , bool showIt)
           
 voidreparent(QWidget * parent, const QPoint & , bool showIt)
           
 virtual voidresize(int w, int h)
           
 voidresize(const QSize & )
           
 voidscroll(int dx, int dy)
           
 voidscroll(int dx, int dy, const QRect & )
           
 virtual voidsetAcceptDrops(bool on)
           
 virtual voidsetActiveWindow()
           
 virtual voidsetAutoMask(bool )
           
 virtual voidsetBackgroundColor(const QColor & )
           
 virtual voidsetBackgroundMode(BackgroundMode )
           
 voidsetBackgroundMode(BackgroundMode , BackgroundMode )
           
 virtual voidsetBackgroundOrigin(BackgroundOrigin )
           
 virtual voidsetBackgroundPixmap(const QPixmap & )
           
 voidsetBaseSize(const QSize & )
           
 voidsetBaseSize(int basew, int baseh)
           
 virtual voidsetCaption(const QString & )
           
 virtual voidsetCursor(const QCursor & )
           
 voidsetDisabled(bool )
           
 virtual voidsetEnabled(bool )
           
 virtual voidsetEraseColor(const QColor & )
           
 virtual voidsetErasePixmap(const QPixmap & )
           
 voidsetFixedHeight(int h)
           
 voidsetFixedSize(const QSize & )
           
 voidsetFixedSize(int w, int h)
           
 voidsetFixedWidth(int w)
           
 virtual voidsetFocus()
           
 virtual voidsetFocusPolicy(FocusPolicy )
           
 virtual voidsetFocusProxy(QWidget * )
           
 virtual voidsetFont(const QFont & )
           
 voidsetFont(const QFont & f, bool )
           
 virtual voidsetGeometry(int x, int y, int w, int h)
           
 virtual voidsetGeometry(const QRect & )
           
 virtual voidsetIcon(const QPixmap & )
           
 virtual voidsetIconText(const QString & )
           
 virtual voidsetMask(const QBitmap & )
           
 virtual voidsetMask(const QRegion & )
           
 voidsetMaximumHeight(int maxh)
           
 voidsetMaximumSize(const QSize & )
           
 virtual voidsetMaximumSize(int maxw, int maxh)
           
 voidsetMaximumWidth(int maxw)
           
 voidsetMinimumHeight(int minh)
           
 voidsetMinimumSize(const QSize & )
           
 virtual voidsetMinimumSize(int minw, int minh)
           
 voidsetMinimumWidth(int minw)
           
 virtual voidsetMouseTracking(bool enable)
           
 voidsetName(const char * name)
           
 virtual voidsetPalette(const QPalette & )
           
 voidsetPalette(const QPalette & p, bool )
           
 virtual voidsetPaletteBackgroundColor(const QColor & )
           
 virtual voidsetPaletteBackgroundPixmap(const QPixmap & )
           
 voidsetPaletteForegroundColor(const QColor & )
           
 voidsetSizeIncrement(const QSize & )
           
 virtual voidsetSizeIncrement(int w, int h)
           
 virtual voidsetSizePolicy(QSizePolicy )
           
 voidsetStyle(QStyle * )
           
 QStyle *setStyle(const QString & )
           
 static voidsetTabOrder(QWidget * , QWidget * )
           
 virtual voidsetUpdatesEnabled(bool enable)
           
 virtual voidshow()
           
 voidshowFullScreen()
           
 virtual voidshowMaximized()
           
 virtual voidshowMinimized()
           
 virtual voidshowNormal()
           
 const QSizesize()
           
 virtual const QSizesizeHint()
           
 const QSizesizeIncrement()
           
 virtual const QSizePolicysizePolicy()
           
 voidstackUnder(QWidget * )
           
 static QMetaObject *staticMetaObject()
           
 const QStyle &style()
           
 const WFlagstestWFlags(WFlags f)
           
 const WStatetestWState(WState s)
           
 const QWidget *topLevelWidget()
           
 static QStringtr(const char * , const char * )
           
 static QStringtrUtf8(const char * , const char * )
           
 virtual voidunsetCursor()
           
 voidunsetFont()
           
 voidunsetPalette()
           
 voidupdate()
           
 voidupdate(int x, int y, int w, int h)
           
 voidupdate(const QRect & )
           
 voidupdateGeometry()
           
 const QRectvisibleRect()
           
 const intwidth()
           
 const WIdwinId()
           
 static QWidgetMapper *wmapper()
           
 const intx()
           
 const inty()
           

Methods inherited from class QObject
event, eventFilter, isA, inherits, name, name, isWidgetType, highPriority, signalsBlocked, blockSignals, startTimer, killTimer, killTimers, child, children, objectTrees, queryList, insertChild, removeChild, installEventFilter, removeEventFilter, connect, connect, disconnect, disconnect, disconnect, connectInternal, dumpObjectTree, dumpObjectInfo, setProperty, property, parent, deleteLater

Methods inherited from class QPaintDevice
devType, isExtDev, paintingActive, setResolution, resolution, handle

Constructor Detail

QWidget

public QWidget(QWidget * parent, const char * name, WFlags f)
Method Detail

~QWidget

public ~QWidget()
Method Detail

acceptDrops

public const bool acceptDrops()

adjustSize

public virtual void adjustSize()

autoMask

public const bool autoMask()

backgroundBrush

public const const QBrush & backgroundBrush()

backgroundColor

public const const QColor & backgroundColor()

backgroundMode

public const BackgroundMode backgroundMode()

backgroundOrigin

public const BackgroundOrigin backgroundOrigin()

backgroundPixmap

public const const QPixmap * backgroundPixmap()

baseSize

public const QSize baseSize()

caption

public const QString caption()

childAt

public const QWidget * childAt(int x, int y, bool includeThis)

childAt

public const QWidget * childAt(const QPoint & , bool includeThis)

childrenRect

public const QRect childrenRect()

childrenRegion

public const QRegion childrenRegion()

className

public virtual const const char * className()

clearFocus

public void clearFocus()

clearMask

public void clearMask()

close

public bool close()

close

public virtual bool close(bool alsoDelete)

colorGroup

public const const QColorGroup & colorGroup()

constPolish

public const void constPolish()

cursor

public const const QCursor & cursor()

customWhatsThis

public virtual const bool customWhatsThis()

drawText

public void drawText(int x, int y, const QString & )

drawText

public void drawText(const QPoint & , const QString & )

erase

public void erase()

erase

public void erase(int x, int y, int w, int h)

erase

public void erase(const QRect & )

erase

public void erase(const QRegion & )

eraseColor

public const const QColor & eraseColor()

erasePixmap

public const const QPixmap * erasePixmap()

find

public static QWidget * find(WId )

focusPolicy

public const FocusPolicy focusPolicy()

focusProxy

public const QWidget * focusProxy()

focusWidget

public const QWidget * focusWidget()

font

public const QFont font()

fontInfo

public const QFontInfo fontInfo()

fontMetrics

public const QFontMetrics fontMetrics()

foregroundColor

public const const QColor & foregroundColor()

frameGeometry

public const QRect frameGeometry()

frameSize

public const QSize frameSize()

geometry

public const const QRect & geometry()

grabKeyboard

public void grabKeyboard()

grabMouse

public void grabMouse()

grabMouse

public void grabMouse(const QCursor & )

hasFocus

public const bool hasFocus()

hasMouse

public const bool hasMouse()

hasMouseTracking

public const bool hasMouseTracking()

height

public const int height()

heightForWidth

public virtual const int heightForWidth(int )

hide

public virtual void hide()

icon

public const const QPixmap * icon()

iconify

public void iconify()

iconText

public const QString iconText()

isActiveWindow

public const bool isActiveWindow()

isDesktop

public const bool isDesktop()

isDialog

public const bool isDialog()

isEnabled

public const bool isEnabled()

isEnabledTo

public const bool isEnabledTo(QWidget * )

isEnabledToTLW

public const bool isEnabledToTLW()

isFocusEnabled

public const bool isFocusEnabled()

isHidden

public const bool isHidden()

isMaximized

public const bool isMaximized()

isMinimized

public const bool isMinimized()

isModal

public const bool isModal()

isPopup

public const bool isPopup()

isTopLevel

public const bool isTopLevel()

isUpdatesEnabled

public const bool isUpdatesEnabled()

isVisible

public const bool isVisible()

isVisibleTo

public const bool isVisibleTo(QWidget * )

isVisibleToTLW

public const bool isVisibleToTLW()

keyboardGrabber

public static QWidget * keyboardGrabber()

layout

public const QLayout * layout()

lower

public void lower()

mapFrom

public const QPoint mapFrom(QWidget * , const QPoint & )

mapFromGlobal

public const QPoint mapFromGlobal(const QPoint & )

mapFromParent

public const QPoint mapFromParent(const QPoint & )

mapTo

public const QPoint mapTo(QWidget * , const QPoint & )

mapToGlobal

public const QPoint mapToGlobal(const QPoint & )

mapToParent

public const QPoint mapToParent(const QPoint & )

maximumHeight

public const int maximumHeight()

maximumSize

public const QSize maximumSize()

maximumWidth

public const int maximumWidth()

metaObject

public virtual const QMetaObject * metaObject()

microFocusHint

public const QRect microFocusHint()

minimumHeight

public const int minimumHeight()

minimumSize

public const QSize minimumSize()

minimumSizeHint

public virtual const QSize minimumSizeHint()

minimumWidth

public const int minimumWidth()

mouseGrabber

public static QWidget * mouseGrabber()

move

public virtual void move(int x, int y)

move

public void move(const QPoint & )

ownCursor

public const bool ownCursor()

ownFont

public const bool ownFont()

ownPalette

public const bool ownPalette()

palette

public const const QPalette & palette()

paletteBackgroundColor

public const const QColor & paletteBackgroundColor()

paletteBackgroundPixmap

public const const QPixmap * paletteBackgroundPixmap()

paletteForegroundColor

public const const QColor & paletteForegroundColor()

parentWidget

public const QWidget * parentWidget(bool sameWindow)

polish

public virtual void polish()

pos

public const QPoint pos()

qObject

public QObject * qObject()

qt_cast

public virtual void * qt_cast(const char * )

qt_emit

public virtual bool qt_emit(int , QUObject * )

qt_invoke

public virtual bool qt_invoke(int , QUObject * )

qt_property

public virtual bool qt_property(int , int , QVariant * )

raise

public void raise()

recreate

public void recreate(QWidget * parent, WFlags f, const QPoint & p, bool showIt)

rect

public const QRect rect()

releaseKeyboard

public void releaseKeyboard()

releaseMouse

public void releaseMouse()

repaint

public void repaint()

repaint

public void repaint(bool erase)

repaint

public void repaint(int x, int y, int w, int h, bool erase)

repaint

public void repaint(const QRect & , bool erase)

repaint

public void repaint(const QRegion & , bool erase)

reparent

public virtual void reparent(QWidget * parent, WFlags , const QPoint & , bool showIt)

reparent

public void reparent(QWidget * parent, const QPoint & , bool showIt)

resize

public virtual void resize(int w, int h)

resize

public void resize(const QSize & )

scroll

public void scroll(int dx, int dy)

scroll

public void scroll(int dx, int dy, const QRect & )

setAcceptDrops

public virtual void setAcceptDrops(bool on)

setActiveWindow

public virtual void setActiveWindow()

setAutoMask

public virtual void setAutoMask(bool )

setBackgroundColor

public virtual void setBackgroundColor(const QColor & )

setBackgroundMode

public virtual void setBackgroundMode(BackgroundMode )

setBackgroundMode

public void setBackgroundMode(BackgroundMode , BackgroundMode )

setBackgroundOrigin

public virtual void setBackgroundOrigin(BackgroundOrigin )

setBackgroundPixmap

public virtual void setBackgroundPixmap(const QPixmap & )

setBaseSize

public void setBaseSize(const QSize & )

setBaseSize

public void setBaseSize(int basew, int baseh)

setCaption

public virtual void setCaption(const QString & )

setCursor

public virtual void setCursor(const QCursor & )

setDisabled

public void setDisabled(bool )

setEnabled

public virtual void setEnabled(bool )

setEraseColor

public virtual void setEraseColor(const QColor & )

setErasePixmap

public virtual void setErasePixmap(const QPixmap & )

setFixedHeight

public void setFixedHeight(int h)

setFixedSize

public void setFixedSize(const QSize & )

setFixedSize

public void setFixedSize(int w, int h)

setFixedWidth

public void setFixedWidth(int w)

setFocus

public virtual void setFocus()

setFocusPolicy

public virtual void setFocusPolicy(FocusPolicy )

setFocusProxy

public virtual void setFocusProxy(QWidget * )

setFont

public virtual void setFont(const QFont & )

setFont

public void setFont(const QFont & f, bool )

setGeometry

public virtual void setGeometry(int x, int y, int w, int h)

setGeometry

public virtual void setGeometry(const QRect & )

setIcon

public virtual void setIcon(const QPixmap & )

setIconText

public virtual void setIconText(const QString & )

setMask

public virtual void setMask(const QBitmap & )

setMask

public virtual void setMask(const QRegion & )

setMaximumHeight

public void setMaximumHeight(int maxh)

setMaximumSize

public void setMaximumSize(const QSize & )

setMaximumSize

public virtual void setMaximumSize(int maxw, int maxh)

setMaximumWidth

public void setMaximumWidth(int maxw)

setMinimumHeight

public void setMinimumHeight(int minh)

setMinimumSize

public void setMinimumSize(const QSize & )

setMinimumSize

public virtual void setMinimumSize(int minw, int minh)

setMinimumWidth

public void setMinimumWidth(int minw)

setMouseTracking

public virtual void setMouseTracking(bool enable)

setName

public void setName(const char * name)

setPalette

public virtual void setPalette(const QPalette & )

setPalette

public void setPalette(const QPalette & p, bool )

setPaletteBackgroundColor

public virtual void setPaletteBackgroundColor(const QColor & )

setPaletteBackgroundPixmap

public virtual void setPaletteBackgroundPixmap(const QPixmap & )

setPaletteForegroundColor

public void setPaletteForegroundColor(const QColor & )

setSizeIncrement

public void setSizeIncrement(const QSize & )

setSizeIncrement

public virtual void setSizeIncrement(int w, int h)

setSizePolicy

public virtual void setSizePolicy(QSizePolicy )

setStyle

public void setStyle(QStyle * )

setStyle

public QStyle * setStyle(const QString & )

setTabOrder

public static void setTabOrder(QWidget * , QWidget * )

setUpdatesEnabled

public virtual void setUpdatesEnabled(bool enable)

show

public virtual void show()

showFullScreen

public void showFullScreen()

showMaximized

public virtual void showMaximized()

showMinimized

public virtual void showMinimized()

showNormal

public virtual void showNormal()

size

public const QSize size()

sizeHint

public virtual const QSize sizeHint()

sizeIncrement

public const QSize sizeIncrement()

sizePolicy

public virtual const QSizePolicy sizePolicy()

stackUnder

public void stackUnder(QWidget * )

staticMetaObject

public static QMetaObject * staticMetaObject()

style

public const QStyle & style()

testWFlags

public const WFlags testWFlags(WFlags f)

testWState

public const WState testWState(WState s)

topLevelWidget

public const QWidget * topLevelWidget()

tr

public static QString tr(const char * , const char * )

trUtf8

public static QString trUtf8(const char * , const char * )

unsetCursor

public virtual void unsetCursor()

unsetFont

public void unsetFont()

unsetPalette

public void unsetPalette()

update

public void update()

update

public void update(int x, int y, int w, int h)

update

public void update(const QRect & )

updateGeometry

public void updateGeometry()

visibleRect

public const QRect visibleRect()

width

public const int width()

winId

public const WId winId()

wmapper

public static QWidgetMapper * wmapper()

x

public const int x()

y

public const int y()

Association Links

to Class QRect

to Class QColor

to Class QPalette

to Class QFont

to Class QWExtra