28 # include <QPrintDialog> 42 QPrintDialog printDialog(&p);
43 if (printDialog.exec() == QDialog::Accepted) {
45 QPixmap *pix = (QPixmap *)(TGQt::iwid(
id));
47 pnt.drawPixmap(0,0,*pix);
50 printf(
" No TCanvas has been selected yet! \n");
static TVirtualPad *& Pad()
Return the current pad for the current thread.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual Int_t GetPixmapID() const =0