VAPOR3 3.9.4
VFrame.h
Go to the documentation of this file.
1#pragma once
2
3#include <QWidget>
4#include <QFrame>
5#include <forward_list>
6
11class VFrame : public QFrame {
12 Q_OBJECT
13
14public:
16
17 void addWidget(QWidget *widget);
18
20
21 // The following two methods control if a child is shown or hidden.
22 // If a child widget is the ith added to this VFrame, then idx should be i-1.
23 // It returns 0 upon success, and 1 upon failure (e.g. invalid index).
24 int hideChildAtIdx(int idx);
25 int showChildAtIdx(int idx);
26
27private:
28 std::forward_list<QWidget *> _child_widgets;
29 int _num_of_children = 0;
30};
Definition: VFrame.h:11
int getNumOfChildWidgets() const
int showChildAtIdx(int idx)
void addWidget(QWidget *widget)
int hideChildAtIdx(int idx)