class ActiveObjects : public QObject#
Singleton to provide access to active objects.
This class provides access to the active objects in the running application. If you write an application using the Avogadro libraries you need to keep this class updated with changes in active objects in order for built in features to work as expected.
All returned objects are owned by the running application, nullptr indicates that there is no currently active object of that type.
QWidget *activeWidget() const#
Get the active widget (more general, could be GLWidget, vtkGLWidget, etc).
Public Static Functions
static ActiveObjects &instance()#
Return a reference to the singleton instance that can be queried.
- QWidget *activeWidget() const#