Qt 4.5.x already has a GIF imageformat plugin, implemented in a self-contained way; however it can only read GIFs. This one is an alternative which can both read and write GIFs. It is simply a wrapper for giflib. It also supports GIF comments for both reading and writing, via QImage::text, setText or QImageWriter::setText.
These details are provided for information only. No information here is legal advice and should not be used as such.