Pretty straightforward question.
QMap
does not inherit QObject
, so I'd like to know if there is an easy Qt Way of making it emit mySignal(MyEnum state)
.
If you are asking why I do not just emit a signal in my code when I call the function QMap::insert(...)
, its because this is done in a template... which """I think""" is impossible:
http://doc.qt.io/archives/qt-4.8/templates.html
If it helps, the QMap
object I am using is global, and will be used between threads.