Thanks Jacek, it was the size.
I just tested
Qt Code:
  1. QPixmap pixmap(600,400);
  2. QPainter(&pixmap);
To copy to clipboard, switch view to plain text mode 
and that works.