#include <qframe.h>

Public Types |
|
| enum | Shape
{ NoFrame = 0, Box = 0x0001, Panel = 0x0002, WinPanel = 0x0003, HLine = 0x0004, VLine = 0x0005, StyledPanel = 0x0006 } |
| enum | Shadow { Plain = 0x0010, Raised = 0x0020, Sunken = 0x0030 } |
| enum | StyleMask { Shadow_Mask = 0x00f0, Shape_Mask = 0x000f } |
Public Member Functions |
|
| QFrame (QWidget *parent=0, Qt::WindowFlags f=0) | |
| ~QFrame () | |
| int | frameStyle () const |
| void | setFrameStyle (int) |
| int | frameWidth () const |
| QSize | sizeHint () const |
| Shape | frameShape () const |
| void | setFrameShape (Shape) |
| Shadow | frameShadow () const |
| void | setFrameShadow (Shadow) |
| int | lineWidth () const |
| void | setLineWidth (int) |
| int | midLineWidth () const |
| void | setMidLineWidth (int) |
| QRect | frameRect () const |
| void | setFrameRect (const QRect &) |
Protected Member Functions |
|
| bool | event (QEvent *e) |
| void | paintEvent (QPaintEvent *) |
| void | changeEvent (QEvent *) |
| void | drawFrame (QPainter *) |
| QFrame (QFramePrivate &dd, QWidget *parent=0, Qt::WindowFlags f=0) | |
Properties |
|
| Shape | frameShape |
| Shadow | frameShadow |
| int | lineWidth |
| int | midLineWidth |
| int | frameWidth |
| QRect | frameRect |
| enum Shape |
Definition at line 78 of file qframe.h.
{
NoFrame = 0, // no frame
Box = 0x0001, // rectangular box
Panel = 0x0002, // rectangular panel
WinPanel = 0x0003, // rectangular panel (Windows)
HLine = 0x0004, // horizontal line
VLine = 0x0005, // vertical line
StyledPanel = 0x0006 // rectangular panel depending on the GUI style
#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
,PopupPanel = StyledPanel, // rectangular panel depending on the GUI style
MenuBarPanel = StyledPanel,
ToolBarPanel = StyledPanel,
LineEditPanel = StyledPanel,
TabWidgetPanel = StyledPanel,
GroupBoxPanel = StyledPanel
#endif
};
| enum Shadow |
| enum StyleMask |
Definition at line 102 of file qframe.h.
{
Shadow_Mask = 0x00f0, // mask for the shadow
Shape_Mask = 0x000f // mask for the shape
#if defined(QT3_SUPPORT)
,MShadow = Shadow_Mask,
MShape = Shape_Mask
#endif
};
| ~QFrame | ( | ) |
| int frameStyle | ( | ) | const |
| void setFrameStyle | ( | int | ) |
| int frameWidth | ( | ) | const |
| QSize sizeHint | ( | ) | const [virtual] |
Reimplemented from QWidget.
Reimplemented in CurveEditor, QAbstractScrollArea, QColumnView, QGraphicsView, QHeaderView, QLabel, QLCDNumber, QMdiArea, QScrollArea, and QSplitter.
| Shape frameShape | ( | ) | const |
| void setFrameShape | ( | Shape | ) |
| Shadow frameShadow | ( | ) | const |
| void setFrameShadow | ( | Shadow | ) |
| int lineWidth | ( | ) | const |
| void setLineWidth | ( | int | ) |
| int midLineWidth | ( | ) | const |
| void setMidLineWidth | ( | int | ) |
| QRect frameRect | ( | ) | const |
| void setFrameRect | ( | const QRect & | ) |
| bool event | ( | QEvent * | e | ) | [protected, virtual] |
Reimplemented from QWidget.
Reimplemented in QAbstractItemView, QAbstractScrollArea, QGraphicsView, QHeaderView, QLabel, QLCDNumber, QListView, QListWidget, QMdiArea, QPlainTextEdit, QScrollArea, QSplitter, QStackedWidget, QTableWidget, QTextBrowser, QTextEdit, QToolBox, and QTreeWidget.
| void paintEvent | ( | QPaintEvent * | ) | [protected, virtual] |
Reimplemented from QWidget.
Reimplemented in CurveEditor, QAbstractScrollArea, QGraphicsView, QHeaderView, QLabel, QLCDNumber, QListView, QMdiArea, QPlainTextEdit, QTableView, QTextBrowser, QTextEdit, and QTreeView.
| void changeEvent | ( | QEvent * | ) | [protected, virtual] |
| void drawFrame | ( | QPainter * | ) | [protected] |
Shape
frameShape [read, write] |
Shadow
frameShadow [read, write] |
int lineWidth [read, write] |
int midLineWidth [read,
write] |
int frameWidth [read] |
QRect frameRect [read,
write] |