i run QT on my Mac, i have read the first 3 lessons and unfortunately i couldn't understand the essentials of GUI programming, i mean how the source code relate the GUI files.When i do the gui, i need to write the code, do i need to write only in main.cpp file, or in another too, where i an write to modify it.For example there is a simple program with two buttons, i use Qbuttons , but how/when to write what happens when the button is pushed?

Thank you previously.