QWidget Class Reference
Inherits QObject.
Constructor
- void QWidget(QWidget parent, WindowFlags f)
Constructor Properties
- prototype: The QWidget prototype object
- QWidget keyboardGrabber()
- QWidget mouseGrabber()
- void setTabOrder(QWidget arg__1, QWidget arg__2)
- DrawWindowBackground = 0x1
- DrawChildren = 0x2
- IgnoreMask = 0x4
- RenderFlag( value )
- RenderFlags( value1, value2, ... )
Prototype Object Properties
The QWidget prototype object inherits properties from the QObject prototype object and also has the following properties.
- List actions()
- void activateWindow()
- void addAction(QAction action)
- void addActions(List actions)
- void adjustSize()
- ColorRole backgroundRole()
- QWidget childAt(QPoint p)
- void clearFocus()
- void clearMask()
- QMargins contentsMargins()
- QRect contentsRect()
- void createWinId()
- WId effectiveWinId()
- void ensurePolished()
- QWidget focusProxy()
- QWidget focusWidget()
- ColorRole foregroundRole()
- void getContentsMargins(int left, int top, int right, int bottom)
- void grabGesture(GestureType type, GestureFlags flags)
- void grabKeyboard()
- void grabMouse()
- int grabShortcut(QKeySequence key, ShortcutContext context)
- QGraphicsEffect graphicsEffect()
- QGraphicsProxyWidget graphicsProxyWidget()
- bool hasHeightForWidth()
- int heightForWidth(int arg__1)
- Object inputMethodQuery(InputMethodQuery arg__1)
- void insertAction(QAction before, QAction action)
- void insertActions(QAction before, List actions)
- bool isAncestorOf(QWidget child)
- bool isEnabledTo(QWidget arg__1)
- bool isHidden()
- bool isLeftToRight()
- bool isRightToLeft()
- bool isVisibleTo(QWidget arg__1)
- bool isWindow()
- QLayout layout()
- QPoint mapFrom(QWidget arg__1, QPoint arg__2)
- QPoint mapFromGlobal(QPoint arg__1)
- QPoint mapFromParent(QPoint arg__1)
- QPoint mapTo(QWidget arg__1, QPoint arg__2)
- QPoint mapToGlobal(QPoint arg__1)
- QPoint mapToParent(QPoint arg__1)
- QRegion mask()
- void move(int x, int y)
- QWidget nativeParentWidget()
- QWidget nextInFocusChain()
- void overrideWindowFlags(WindowFlags type)
- void overrideWindowState(WindowStates state)
- QWidget parentWidget()
- QWidget previousInFocusChain()
- void releaseKeyboard()
- void releaseMouse()
- void releaseShortcut(int id)
- void removeAction(QAction action)
- void render(QPaintDevice target, QPoint targetOffset, QRegion sourceRegion, RenderFlags renderFlags)
- void repaint(QRect arg__1)
- void resize(int w, int h)
- bool restoreGeometry(QByteArray geometry)
- QByteArray saveGeometry()
- void scroll(int dx, int dy)
- void setAttribute(WidgetAttribute arg__1, bool on)
- void setBackgroundRole(ColorRole arg__1)
- void setBaseSize(int basew, int baseh)
- void setContentsMargins(QMargins margins)
- void setFixedHeight(int h)
- void setFixedSize(QSize arg__1)
- void setFixedWidth(int w)
- void setFocus(FocusReason reason)
- void setFocusProxy(QWidget arg__1)
- void setForegroundRole(ColorRole arg__1)
- void setGeometry(int x, int y, int w, int h)
- void setGraphicsEffect(QGraphicsEffect effect)
- void setLayout(QLayout arg__1)
- void setMask(QBitmap arg__1)
- void setMaximumSize(int maxw, int maxh)
- void setMinimumSize(int minw, int minh)
- void setParent(QWidget parent)
- void setShortcutAutoRepeat(int id, bool enable)
- void setShortcutEnabled(int id, bool enable)
- void setSizeIncrement(int w, int h)
- void setSizePolicy(Policy horizontal, Policy vertical)
- void setStyle(QStyle arg__1)
- void setWindowFlags(WindowFlags type)
- void setWindowOpacity(qreal level)
- void setWindowRole(String arg__1)
- void setWindowState(WindowStates state)
- void stackUnder(QWidget arg__1)
- QStyle style()
- bool testAttribute(WidgetAttribute arg__1)
- bool underMouse()
- void ungrabGesture(GestureType type)
- void unsetCursor()
- void unsetLayoutDirection()
- void unsetLocale()
- void update(QRect arg__1)
- void updateGeometry()
- QRegion visibleRegion()
- WId winId()
- QWidget window()
- WindowFlags windowFlags()
- qreal windowOpacity()
- String windowRole()
- WindowStates windowState()
- WindowType windowType()
Instance Properties
QWidget objects inherit properties from the QWidget prototype object and also have the following properties.
- modal
- windowModality
- enabled
- geometry
- frameGeometry
- normalGeometry
- x
- y
- pos
- frameSize
- size
- width
- height
- rect
- childrenRect
- childrenRegion
- sizePolicy
- minimumSize
- maximumSize
- minimumWidth
- minimumHeight
- maximumWidth
- maximumHeight
- sizeIncrement
- baseSize
- palette
- font
- cursor
- mouseTracking
- isActiveWindow
- focusPolicy
- focus
- contextMenuPolicy
- updatesEnabled
- visible
- minimized
- maximized
- fullScreen
- sizeHint
- minimumSizeHint
- acceptDrops
- windowTitle
- windowIcon
- windowIconText
- windowOpacity
- windowModified
- toolTip
- toolTipDuration
- statusTip
- whatsThis
- accessibleName
- accessibleDescription
- layoutDirection
- autoFillBackground
- styleSheet
- locale
- windowFilePath
- inputMethodHints