QtGui/qsplitter.h Source File
Go to the documentation of this file.
54 #ifndef QT_NO_SPLITTER
56 class QSplitterPrivate;
58 template <
typename T>
class QList;
67 Q_PROPERTY(
bool opaqueResize READ opaqueResize WRITE setOpaqueResize)
68 Q_PROPERTY(
int handleWidth READ handleWidth WRITE setHandleWidth)
69 Q_PROPERTY(
bool childrenCollapsible READ childrenCollapsible WRITE setChildrenCollapsible)
76 void addWidget(
QWidget *widget);
79 void setOrientation(
Qt::Orientation);
80 Qt::Orientation orientation() const;
82 void setChildrenCollapsible(
bool);
83 bool childrenCollapsible() const;
85 void setCollapsible(
int index,
bool);
86 bool isCollapsible(
int index) const;
87 void setOpaqueResize(
bool opaque = true);
88 bool opaqueResize() const;
91 QSize sizeHint() const;
92 QSize minimumSizeHint() const;
94 QList<
int> sizes() const;
95 void setSizes(const
QList<
int> &list);
100 int handleWidth() const;
101 void setHandleWidth(
int);
104 QWidget *widget(
int index) const;
107 void getRange(
int index,
int *,
int *) const;
110 void setStretchFactor(
int index,
int stretch);
113 void splitterMoved(
int pos,
int index);
123 void changeEvent(QEvent *);
124 void moveSplitter(
int pos,
int index);
125 void setRubberBand(
int position);
126 int closestLegalPosition(
int,
int);
132 enum ResizeMode { Stretch, KeepSize, FollowSizeHint, Auto };
133 QT3_SUPPORT
void setResizeMode(
QWidget *
w, ResizeMode
mode);
134 inline QT3_SUPPORT
void moveToFirst(
QWidget *
w) { insertWidget(0,w); }
135 inline QT3_SUPPORT
void moveToLast(
QWidget *
w) { addWidget(w); }
136 inline QT3_SUPPORT
void setCollapsible(
QWidget *
w,
bool collapse)
137 { setCollapsible(indexOf(w), collapse); }
138 QT3_SUPPORT
void setMargin(
int margin) {
setContentsMargins(margin, margin, margin, margin); }
139 QT3_SUPPORT
int margin()
const
140 {
int margin;
int dummy;
getContentsMargins(&margin, &dummy, &dummy, &dummy);
return margin; }
151 #ifndef QT_NO_TEXTSTREAM
157 class QSplitterHandlePrivate;
158 class Q_GUI_EXPORT QSplitterHandle :
public QWidget
165 bool opaqueResize()
const;
176 bool event(QEvent *);
178 void moveSplitter(
int p);
179 int closestLegalPosition(
int p);
182 Q_DISABLE_COPY(QSplitterHandle)
183 Q_DECLARE_PRIVATE(QSplitterHandle)
186 #endif // QT_NO_SPLITTER
192 #endif // QSPLITTER_H
Q_GUI_EXPORT QTextStream & operator>>(QTextStream &, QSplitter &)
#define QT_BEGIN_NAMESPACE
GLuint GLuint GLsizei count
GLuint const GLchar * name
Q_GUI_EXPORT QTextStream & operator<<(QTextStream &, const QSplitter &)
GLubyte GLubyte GLubyte GLubyte w