31 MyDockWidget::MyDockWidget(
QWidget* parent)
36 ptree MyDockWidget::GetPTreeState()
const
39 result.put_child(
"widget", PTreeQtState::GetWidgetState(
this));
40 result.put_child(
"dock", PTreeQtState::GetDockWidgetState(
this));
44 void MyDockWidget::SetPTreeState(
const ptree& state)
46 auto widget_state = state.get_child_optional(
"widget");
48 PTreeQtState::SetWidgetState(
this, widget_state.get());
50 auto dock_state = state.get_child_optional(
"dock");
52 PTreeQtState::SetDockWidgetState(
this, dock_state.get());
Interface for PTreeQtState.
see the online Qt documentation
see the online Qt documentation
Namespace for generic graphical shell for simulators.