32 if (m_pCustomEventType.get() ==
nullptr)
34 const auto oGeneratedType = QEvent::registerEventType();
35 m_pCustomEventType.reset(
new QEvent::Type(
static_cast<QEvent::Type
>(oGeneratedType)));
37 return *m_pCustomEventType;
46 static inline std::unique_ptr<QEvent::Type> m_pCustomEventType;
std::function< void()> m_oFunc
std::function which is executed.
static QEvent::Type type()
Register dynamically event type.