class Container{public: const QList<Item*>& items(); const QList<const Item*>& items() const; Q_SIGNALS: void itemChanged(Item* item); void itemChanged(const Item* item) const; private: QList<Item*> items_;};
// SIGNAL 1void Application::changed() const{ QMetaObject::activate(const_cast< Application *>(this), &staticMetaObject, 1, 0);}
class Application {...public slots: void newWindow();signals: void changed() const;...}; connect(this, &Application::changed, this, &Application::newWindow);