A few years ago I packaged Qt 3.3.4 for OpenWrt. You may want to fish around for that; it should be somewhere in the openwrt.org bug tracker. At least it's a start for building a small-ish Qt (not that Qt would ever get small....)