I want to run following code again when i press the pushbutton FFT
all you have to do is pack that code in to a slot, and connect the clicked() signal from the button to this slot.