Since you provide no input what so ever on how you are creating the PDF, I will assume either QPdfWriter or QPrinter.

Both are QPaintDevice implementations, so you can draw anything onto them using QPainter.

Cheers,
_