Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GUI Software Design Pattern to manage multiple widgets during runtime [closed]

Does anybody knows a software pattern for handeling multiple widgets states/visibility during runntime?

The problem is: An application has about 50 different docking widgets. Depending on the state of the application, some of the docking widgets should be visible and some not.

We are working with C++ and Qt and therefore using the model/view/controller pattern.

I m interested in any architectural idea or any pattern helping to solve this problem

Thanks

like image 440
user1911091 Avatar asked Sep 17 '25 19:09

user1911091


1 Answers

If you have many states I think it's good to use the Qt State Machine Framework. It can be used to effectively embed the elements and semantics of statecharts in Qt applications. It integrates with Qt's meta-object system; for example, transitions between states can be triggered by signals, and states can be configured to set properties and invoke methods on QObjects. So you can have have different states which configure and set properties for the widgets.

like image 114
Nejat Avatar answered Sep 19 '25 10:09

Nejat