I have to code that stuff on my own?
You have an ill-defined problem, if your QPolygonF can be arbitrarily complex. Images are in general rectangular. You can apply an arbitrary QTransform to a QImage (see QImage::transformed()), but this is only for 4-sided to 4-sided transformations.

Otherwise, you may find what you need in non-Qt libraries, like OpenGL or OpenCV.