MIDI callbackhook implementation
How can I implement correctly MidiIn Callbackhook in a Desktop Application.
- separate thread?
- MainWindow method?
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.