VAPOR3 3.9.4
VRouter.h
Go to the documentation of this file.
1#pragma once
2
3#include "VContainer.h"
5#include <QStackedWidget>
6
7class VRouter : public VContainer, public AbstractWidgetGroup<VRouter, QWidget> {
8 Q_OBJECT
9
10 QStackedWidget *_stack;
11 QWidget *_emptyWidget = nullptr;
12
13public:
15 VRouter(List children);
16 VRouter *Add(QWidget *w) override;
17
18 void Show(QWidget *w);
19
20private:
21 QWidget *emptyWidget();
22};
Provides an interface that standardizes widget grouping classes.
std::initializer_list< QWidget * > List
Definition: VRouter.h:7
VRouter * Add(QWidget *w) override
Adds a widget.
void Show(QWidget *w)
VRouter(List children)