Extending Qt Creator Manual | FancyMainWindow

Extending Qt Creator Manual 4.6.1

# FancyMainWindow Class

(Utils::FancyMainWindow)

The FancyMainWindow class is a MainWindow with dock widgets and additional "lock" functionality (locking the dock widgets in place) and "reset layout" functionality. More...

Header: | #include <FancyMainWindow>

- List of all members, including inherited members

## Public Functions

| FancyMainWindow(QWidget *parent = 0)
virtual | ~FancyMainWindow()
void | addDockActionsToMenu(QMenu *menu)
QDockWidget * | addDockForWidget(QWidget *widget, bool immutable = false)
bool | autoHideTitleBars() const
QAction * | autoHideTitleBarsAction() const
QList<QDockWidget *> | dockWidgets() const
QAction * | menuSeparator1() const
QAction * | menuSeparator2() const
QAction * | resetLayoutAction() const
void | restoreSettings(const QSettings *settings)
void | restoreSettings(const QHash<QString, QVariant> &settings)
void | saveSettings(QSettings *settings) const
QHash<QString, QVariant> | saveSettings() const
void | setTrackingEnabled(bool enabled)
QAction * | showCentralWidgetAction() const

## Public Slots

void | setDockActionsVisible(bool v)

## Signals

void | resetLayout()

## Protected Functions

void | contextMenuEvent(QContextMenuEvent *event)
void | hideEvent(QHideEvent *event)
void | showEvent(QShowEvent *event)

## Detailed Description

The FancyMainWindow class is a MainWindow with dock widgets and additional "lock" functionality (locking the dock widgets in place) and "reset layout" functionality.

The dock actions and the additional actions should be accessible in a Window-menu.

## Member Function Documentation

### FancyMainWindow::FancyMainWindow(QWidget *parent = 0)

Default constructs an instance of FancyMainWindow.

### `[virtual]` FancyMainWindow::~FancyMainWindow()

Destroys the instance of FancyMainWindow. The destructor is virtual.

### void FancyMainWindow::addDockActionsToMenu(QMenu *menu)

### QDockWidget *FancyMainWindow::addDockForWidget(QWidget *widget, bool immutable = false)

### bool FancyMainWindow::autoHideTitleBars() const

### QAction *FancyMainWindow::autoHideTitleBarsAction() const

### `[protected]` void FancyMainWindow::contextMenuEvent(QContextMenuEvent *event)

### QList<QDockWidget *> FancyMainWindow::dockWidgets() const

### `[protected]` void FancyMainWindow::hideEvent(QHideEvent *event)

### QAction *FancyMainWindow::menuSeparator1() const

### QAction *FancyMainWindow::menuSeparator2() const

### `[signal]` void FancyMainWindow::resetLayout()

### QAction *FancyMainWindow::resetLayoutAction() const

### void FancyMainWindow::restoreSettings(const QSettings *settings)

### void FancyMainWindow::restoreSettings(const QHash<QString, QVariant> &settings)

### void FancyMainWindow::saveSettings(QSettings *settings) const

### QHash<QString, QVariant> FancyMainWindow::saveSettings() const

### `[slot]` void FancyMainWindow::setDockActionsVisible(bool v)

### void FancyMainWindow::setTrackingEnabled(bool enabled)

### QAction *FancyMainWindow::showCentralWidgetAction() const

### `[protected]` void FancyMainWindow::showEvent(QShowEvent *event)