[qt4] try solving #7, cherry-picked from QtCurve/qtcurve