Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
MIDI callbackhook implementation
desco last edited by
How can I implement correctly MidiIn Callbackhook in a Desktop Application.
- separate thread?
- MainWindow method?
Franzk last edited by
Depends on the work done in the callback. Usually the callback function is executed in the library's thread, which may be your main thread. If you need to feed back information into your application, it's probably a good idea to read "Threads, Events & QOjects":https://developer.qt.nokia.com/wiki/Threads_Events_QObjects for more information on how to pass event callbacks into the event loop.