#include <OSQObjectController.hpp>
openstudio::OSQObjectController::OSQObjectController |
( |
| ) |
|
OSQObjectController manages the life cycle of dynamically allocated QObjects when they are not part of a parent child hierarchy.
This is the case for top level QWidgets owned by a controller.
virtual openstudio::OSQObjectController::~OSQObjectController |
( |
| ) |
|
|
virtual |
void openstudio::OSQObjectController::addQObject |
( |
QObject * |
object | ) |
|
|
protected |
Registers the QObject so that its lifecycle is managed.
When OSQObjectController is deleted the managed QObjects will safely be removed.