I'm writing a program in c++ to draw graphs. Now my question: I use QT4 for user interface and i want a separate object for de code behind the user interface object( i do this because i can reuse my user interface object later ). For the moment the executor object owns the user interface object and the upper object ( the frame ) owns all the executors. Should i do it like this or are there other ways to do this??