NAME

QWidget - Interface to the Qt QWidget class

SYNOPSIS

use QWidget;

Inherits QObject and QPaintDevice.

Requires QColor, QCursor, QEvent, QFont, QFontInfo, QFontMetrics, QPalette, QPixmap, QPoint, QRect, and QSize.

Member functions

new, adjustSize, backgroundColor, backgroundPixmap, caption, childrenRect, clearFocus, close, closeEvent, colorGroup, cursor, drawText, enterEvent, erase, focusInEvent, focusOutEvent, focusPolicy, font, fontInfo, fontMetrics, foregroundColor, frameGeometry, geometry, grabKeyboard, grabMouse, hasFocus, hasMouseTracking, height, hide, icon, iconText, iconify, isActiveWindow, isDesktop, isEnabled, isFocusEnabled, isModal, isPopup, isTopLevel, isUpdatesEnabled, isVisible, keyboardGrabber, keyPressEvent, keyReleaseEvent, leaveEvent, lower, mapFromGlobal, mapFromParent, mapToGlobal, mapToParent, maximumSize, minimumSize, mouseDoubleClickEvent, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, mouseGrabber, move, moveEvent, paintEvent, palette, parentWidget, pos, raise, recreate, rect, releaseKeyboard, releaseMouse, repaint, resize, resizeEvent, scroll, setActiveWindow, setBackgroundColor, setBackgroundPixmap, setCaption, setCursor, setEnabled, setFixedSize, setFocus, setFocusPolicy, setFont, setGeometry, setIcon, setIconText, setMaximumSize, setMinimumSize, setMouseTracking, setPalette, setSizeIncrement, setStyle, setUpdatesEnabled, show, size, sizeHint, sizeIncrement, style, topLevelWidget, update, width, winId, x, y

Overridable functions

adjustSize, close, closeEvent, enterEvent, focusInEvent, focusOutEvent, hide, keyPressEvent, keyReleaseEvent, leaveEvent, mouseDoubleClickEvent, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, move, moveEvent, paintEvent, resize, resizeEvent, setBackgroundColor, setBackgroundPixmap, setCursor, setEnabled, setFont, setGeometry, setPalette, setStyle, show, sizeHint

Overridden functions

event

DESCRIPTION

Every function made available to PerlQt is meant to be interfaced identically to C++ Qt.

EXPORTED

The %Focus and %Flags hashes are exported into the user's namespace, and %GUI is exported from QGlobal.

%Focus contains all of the constants in QWidget that end in Focus. That trailing Focus is removed from the end of the keys for brevity.

The %Flags hash is much more involved. It contains all of the WState_*, WType_*, and WStyle_* flags, as well as quite a few others that begin with W. You can get a full list of them from qwindefs.h.

But you won't find these constants exactly as they're spelled out in there. I've stripped all the leading W's, for example. And all of the constants which have an underscore in them have been split up into two components based on the underscore. I think a few examples are in order.

Was: WStyle_NormalBorder
Now: $Flags{Style}{NormalBorder}
Was: WState_TrackMouse
Now: $Flags{State}{TrackMouse}
Was: WPaintDesktop
Now: $Flags{PaintDesktop}

You can hopefully figure out the rest yourself.

SEE ALSO

qwidget(3qt)

AUTHOR

Ashley Winters <jql@accessone.com>