Classes | |
struct | SplitterWidgetSizing |
struct | SplitterWidget |
class | Splitter |
Enumerations | |
enum | SplitterWidgetSizingStyle { RelativeWidgetSize , WidgetSizeInPoints } |
struct SplitterWidgetSizing |
Public Member Functions | |
QVariantMap | serialize () const |
Static Public Member Functions | |
static SplitterWidgetSizing | relativeSize (float relativeSize=1, const QString &group=QString()) |
static SplitterWidgetSizing | pointSize (int size) |
static std::optional< SplitterWidgetSizing > | deserialize (const QVariantMap &value) |
Public Attributes | |
SplitterWidgetSizingStyle | style |
float | referenceSize |
bool | isDefault |
float | requestedSize |
QString | group |
|
static |
|
static |
QVariantMap SplitterWidgetSizing::serialize | ( | ) | const |
|
static |
SplitterWidgetSizingStyle SplitterWidgetSizing::style |
float SplitterWidgetSizing::referenceSize |
bool SplitterWidgetSizing::isDefault |
float SplitterWidgetSizing::requestedSize |
QString SplitterWidgetSizing::group |
struct SplitterWidget |
Class Members | ||
---|---|---|
QString | key | |
QWidget * | widget | |
bool | visible | |
SplitterWidgetSizing | sizing | |
int | actualSize | |
int | minimumSize |
class Splitter |
Signals | |
void | splitterMoved () |
Public Member Functions | |
Splitter (Qt::Orientation orientation) | |
void | addWidget (const QString &key, QWidget *widget, const SplitterWidgetSizing &defaultSize) |
void | insertWidget (const QString &key, size_t index, QWidget *widget, const SplitterWidgetSizing &defaultSize) |
void | addRelativeSizeGroup (const QString &group, float relativeSize) |
QVariantMap | saveState () |
void | saveState (QSettings &settings, const QString &stateName) |
void | restoreState (const QVariantMap &state) |
void | restoreState (const QSettings &settings, const QString &stateName) |
void | resetToDefault () |
std::optional< SplitterWidgetSizing > | sizing (const QString &key) const |
std::optional< SplitterWidgetSizing > | sizing (QWidget *widget) const |
void | setSizing (const QString &key, const SplitterWidgetSizing &sizing) |
void | setRequestedSize (const QString &key, float size) |
void | setRequestedSize (QWidget *widget, float size) |
Qt::Orientation | orientation () const |
void | setOrientation (Qt::Orientation orientation) |
int | minimumWidgetSize () const |
void | setMinimumWidgetSize (int minimumSize) |
QList< int > | sizes () const |
void | setSizes (const QList< int > &sizes) |
Protected Member Functions | |
virtual void | paintEvent (QPaintEvent *event) override |
virtual void | mousePressEvent (QMouseEvent *event) override |
virtual void | mouseMoveEvent (QMouseEvent *event) override |
virtual void | mouseReleaseEvent (QMouseEvent *event) override |
virtual void | leaveEvent (QEvent *event) override |
virtual void | resizeEvent (QResizeEvent *event) override |
virtual void | childEvent (QChildEvent *event) override |
virtual bool | event (QEvent *event) override |
Splitter::Splitter | ( | Qt::Orientation | orientation | ) |
void Splitter::addWidget | ( | const QString & | key, |
QWidget * | widget, | ||
const SplitterWidgetSizing & | defaultSize ) |
void Splitter::insertWidget | ( | const QString & | key, |
size_t | index, | ||
QWidget * | widget, | ||
const SplitterWidgetSizing & | defaultSize ) |
void Splitter::addRelativeSizeGroup | ( | const QString & | group, |
float | relativeSize ) |
QVariantMap Splitter::saveState | ( | ) |
void Splitter::saveState | ( | QSettings & | settings, |
const QString & | stateName ) |
void Splitter::restoreState | ( | const QVariantMap & | state | ) |
void Splitter::restoreState | ( | const QSettings & | settings, |
const QString & | stateName ) |
void Splitter::resetToDefault | ( | ) |
std::optional< SplitterWidgetSizing > Splitter::sizing | ( | const QString & | key | ) | const |
std::optional< SplitterWidgetSizing > Splitter::sizing | ( | QWidget * | widget | ) | const |
void Splitter::setSizing | ( | const QString & | key, |
const SplitterWidgetSizing & | sizing ) |
void Splitter::setRequestedSize | ( | const QString & | key, |
float | size ) |
void Splitter::setRequestedSize | ( | QWidget * | widget, |
float | size ) |
|
inline |
void Splitter::setOrientation | ( | Qt::Orientation | orientation | ) |
|
inline |
void Splitter::setMinimumWidgetSize | ( | int | minimumSize | ) |
QList< int > Splitter::sizes | ( | ) | const |
void Splitter::setSizes | ( | const QList< int > & | sizes | ) |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
signal |