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 |
Method Summary |
const bool | acceptDrops() |
virtual void | adjustSize() |
const bool | autoMask() |
const const QBrush & | backgroundBrush() |
const const QColor & | backgroundColor() |
const BackgroundMode | backgroundMode() |
const BackgroundOrigin | backgroundOrigin() |
const const QPixmap * | backgroundPixmap() |
const QSize | baseSize() |
const QString | caption() |
const QWidget * | childAt(int x, int y, bool includeThis) |
const QWidget * | childAt(const QPoint & , bool includeThis) |
const QRect | childrenRect() |
const QRegion | childrenRegion() |
virtual const const char * | className() |
void | clearFocus() |
void | clearMask() |
bool | close() |
virtual bool | close(bool alsoDelete) |
const const QColorGroup & | colorGroup() |
const void | constPolish() |
const const QCursor & | cursor() |
virtual const bool | customWhatsThis() |
void | drawText(int x, int y, const QString & ) |
void | drawText(const QPoint & , const QString & ) |
void | erase() |
void | erase(int x, int y, int w, int h) |
void | erase(const QRect & ) |
void | erase(const QRegion & ) |
const const QColor & | eraseColor() |
const const QPixmap * | erasePixmap() |
static QWidget * | find(WId ) |
const FocusPolicy | focusPolicy() |
const QWidget * | focusProxy() |
const QWidget * | focusWidget() |
const QFont | font() |
const QFontInfo | fontInfo() |
const QFontMetrics | fontMetrics() |
const const QColor & | foregroundColor() |
const QRect | frameGeometry() |
const QSize | frameSize() |
const const QRect & | geometry() |
void | grabKeyboard() |
void | grabMouse() |
void | grabMouse(const QCursor & ) |
const bool | hasFocus() |
const bool | hasMouse() |
const bool | hasMouseTracking() |
const int | height() |
virtual const int | heightForWidth(int ) |
virtual void | hide() |
const const QPixmap * | icon() |
void | iconify() |
const QString | iconText() |
const bool | isActiveWindow() |
const bool | isDesktop() |
const bool | isDialog() |
const bool | isEnabled() |
const bool | isEnabledTo(QWidget * ) |
const bool | isEnabledToTLW() |
const bool | isFocusEnabled() |
const bool | isHidden() |
const bool | isMaximized() |
const bool | isMinimized() |
const bool | isModal() |
const bool | isPopup() |
const bool | isTopLevel() |
const bool | isUpdatesEnabled() |
const bool | isVisible() |
const bool | isVisibleTo(QWidget * ) |
const bool | isVisibleToTLW() |
static QWidget * | keyboardGrabber() |
const QLayout * | layout() |
void | lower() |
const QPoint | mapFrom(QWidget * , const QPoint & ) |
const QPoint | mapFromGlobal(const QPoint & ) |
const QPoint | mapFromParent(const QPoint & ) |
const QPoint | mapTo(QWidget * , const QPoint & ) |
const QPoint | mapToGlobal(const QPoint & ) |
const QPoint | mapToParent(const QPoint & ) |
const int | maximumHeight() |
const QSize | maximumSize() |
const int | maximumWidth() |
virtual const QMetaObject * | metaObject() |
const QRect | microFocusHint() |
const int | minimumHeight() |
const QSize | minimumSize() |
virtual const QSize | minimumSizeHint() |
const int | minimumWidth() |
static QWidget * | mouseGrabber() |
virtual void | move(int x, int y) |
void | move(const QPoint & ) |
const bool | ownCursor() |
const bool | ownFont() |
const bool | ownPalette() |
const const QPalette & | palette() |
const const QColor & | paletteBackgroundColor() |
const const QPixmap * | paletteBackgroundPixmap() |
const const QColor & | paletteForegroundColor() |
const QWidget * | parentWidget(bool sameWindow) |
virtual void | polish() |
const QPoint | pos() |
QObject * | qObject() |
virtual void * | qt_cast(const char * ) |
virtual bool | qt_emit(int , QUObject * ) |
virtual bool | qt_invoke(int , QUObject * ) |
virtual bool | qt_property(int , int , QVariant * ) |
void | raise() |
void | recreate(QWidget * parent, WFlags f, const QPoint & p, bool showIt) |
const QRect | rect() |
void | releaseKeyboard() |
void | releaseMouse() |
void | repaint() |
void | repaint(bool erase) |
void | repaint(int x, int y, int w, int h, bool erase) |
void | repaint(const QRect & , bool erase) |
void | repaint(const QRegion & , bool erase) |
virtual void | reparent(QWidget * parent, WFlags , const QPoint & , bool showIt) |
void | reparent(QWidget * parent, const QPoint & , bool showIt) |
virtual void | resize(int w, int h) |
void | resize(const QSize & ) |
void | scroll(int dx, int dy) |
void | scroll(int dx, int dy, const QRect & ) |
virtual void | setAcceptDrops(bool on) |
virtual void | setActiveWindow() |
virtual void | setAutoMask(bool ) |
virtual void | setBackgroundColor(const QColor & ) |
virtual void | setBackgroundMode(BackgroundMode ) |
void | setBackgroundMode(BackgroundMode , BackgroundMode ) |
virtual void | setBackgroundOrigin(BackgroundOrigin ) |
virtual void | setBackgroundPixmap(const QPixmap & ) |
void | setBaseSize(const QSize & ) |
void | setBaseSize(int basew, int baseh) |
virtual void | setCaption(const QString & ) |
virtual void | setCursor(const QCursor & ) |
void | setDisabled(bool ) |
virtual void | setEnabled(bool ) |
virtual void | setEraseColor(const QColor & ) |
virtual void | setErasePixmap(const QPixmap & ) |
void | setFixedHeight(int h) |
void | setFixedSize(const QSize & ) |
void | setFixedSize(int w, int h) |
void | setFixedWidth(int w) |
virtual void | setFocus() |
virtual void | setFocusPolicy(FocusPolicy ) |
virtual void | setFocusProxy(QWidget * ) |
virtual void | setFont(const QFont & ) |
void | setFont(const QFont & f, bool ) |
virtual void | setGeometry(int x, int y, int w, int h) |
virtual void | setGeometry(const QRect & ) |
virtual void | setIcon(const QPixmap & ) |
virtual void | setIconText(const QString & ) |
virtual void | setMask(const QBitmap & ) |
virtual void | setMask(const QRegion & ) |
void | setMaximumHeight(int maxh) |
void | setMaximumSize(const QSize & ) |
virtual void | setMaximumSize(int maxw, int maxh) |
void | setMaximumWidth(int maxw) |
void | setMinimumHeight(int minh) |
void | setMinimumSize(const QSize & ) |
virtual void | setMinimumSize(int minw, int minh) |
void | setMinimumWidth(int minw) |
virtual void | setMouseTracking(bool enable) |
void | setName(const char * name) |
virtual void | setPalette(const QPalette & ) |
void | setPalette(const QPalette & p, bool ) |
virtual void | setPaletteBackgroundColor(const QColor & ) |
virtual void | setPaletteBackgroundPixmap(const QPixmap & ) |
void | setPaletteForegroundColor(const QColor & ) |
void | setSizeIncrement(const QSize & ) |
virtual void | setSizeIncrement(int w, int h) |
virtual void | setSizePolicy(QSizePolicy ) |
void | setStyle(QStyle * ) |
QStyle * | setStyle(const QString & ) |
static void | setTabOrder(QWidget * , QWidget * ) |
virtual void | setUpdatesEnabled(bool enable) |
virtual void | show() |
void | showFullScreen() |
virtual void | showMaximized() |
virtual void | showMinimized() |
virtual void | showNormal() |
const QSize | size() |
virtual const QSize | sizeHint() |
const QSize | sizeIncrement() |
virtual const QSizePolicy | sizePolicy() |
void | stackUnder(QWidget * ) |
static QMetaObject * | staticMetaObject() |
const QStyle & | style() |
const WFlags | testWFlags(WFlags f) |
const WState | testWState(WState s) |
const QWidget * | topLevelWidget() |
static QString | tr(const char * , const char * ) |
static QString | trUtf8(const char * , const char * ) |
virtual void | unsetCursor() |
void | unsetFont() |
void | unsetPalette() |
void | update() |
void | update(int x, int y, int w, int h) |
void | update(const QRect & ) |
void | updateGeometry() |
const QRect | visibleRect() |
const int | width() |
const WId | winId() |
static QWidgetMapper * | wmapper() |
const int | x() |
const int | y() |
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 |
QWidget
public QWidget(QWidget * parent, const char * name, WFlags f)
~QWidget
public ~QWidget()
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()
to Class QRect
to Class QColor
to Class QPalette
to Class QFont
to Class QWExtra