Avogadro::QtGui::PeriodicTableScene#

class PeriodicTableScene : public QGraphicsScene#

Public Functions

explicit PeriodicTableScene(QObject *parent = nullptr)#

Constructor.

Public Slots

void changeElement(int element)#

This slot is called when an element is changed (e.g., by keyboard or code).

Signals

void elementChanged(int element)#

This signal is emitted when an element item is clicked.

Protected Functions

void mousePressEvent(QGraphicsSceneMouseEvent *event) override#

Handles the mouse press events to change the active element.