I wrote a library (DLL). Java code uses my DLL with JNA. In library I creates Qtimer by "new" in QThread derived class.
但我有以下错误:
ERROR: QTimer can only be used with threads started with QThread
我应如何适当使用 Quimer 来从非Qt线中引用而不使用 QApplication/QCoreApplication?