I want to create multi-threaded application in Qt (GUI).

Thread 1: Take account of all the logging.
Thread 2: Some math calculations(worker thread).
Thread 3: GUI

What is the best architecture I should go for ? I will higly appreciate any pointer or code snippete

Thanks in advance.