I think maybe making use of the Cairo library might make a cross-platform implementation for the graphics component of the KWQ library. I believe the licenses are compatible enough, Cairo is LGPL.