It seems that QDirectPainter class is very different between qt/e 2/3 and qtopia core 4.1.3.
in qt/e 2/3, QDirectPainter class is inherited from QPainter, but in qtopia core 4.1.3, QDirectPainter is inherited directly from QObject. How can i port the code ?