It was a problem with QString to float conversion in my code, I had to do this:
@
//t1 and t2 is QStringList's
#ifdef Q_WS_WIN
targetpoint1 = new QPoint((t1[0].toFloat()*32),(t1[1].toFloat()*32));
targetpoint2 = new QPoint((t2[0].toFloat()*32),(t2[1].toFloat()*32));
#endif
#ifndef Q_WS_WIN
targetpoint1 = new QPoint((t1[0].replace(",",".").toFloat()*32),(t1[1].replace(",",".").toFloat()*32));
targetpoint2 = new QPoint((t2[0].replace(",",".").toFloat()*32),(t2[1].replace(",",".").toFloat()*32));
#endif@
I don't know if there is a better solution to this..