Thanks, That solved my question
You are creating a null pixmap and painting on that. Give it a size.
Interested in AI ? www.idiap.ch
Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct