OpenStudio:shared_gui_components
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Protected Member Functions | List of all members
openstudio::OSQObjectController Class Reference

#include <OSQObjectController.hpp>

+ Inheritance diagram for openstudio::OSQObjectController:

Public Member Functions

 OSQObjectController ()
 OSQObjectController manages the life cycle of dynamically allocated QObjects when they are not part of a parent child hierarchy. More...
 
virtual ~OSQObjectController ()
 

Protected Member Functions

void addQObject (QObject *object)
 Registers the QObject so that its lifecycle is managed. More...
 

Constructor & Destructor Documentation

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

Member Function Documentation

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.