I think I found my answer. On a forum it says:
"I have tested Atmega8 in DIP28 and QFP32 ,and the ISP does the same job when correctly connected.
You need only a 5VDC power supply between Vss and Vcc
and connect with 5 wires, /RST ,MISO ,MOSI ,SCK and GND from the GQ4X to the pins of the chip."