How can I save the mainwindow and all the widgets it contains to a Jpg or Pdf?
For example I can do this for a widget that is on the mainwindow:
ui->Detector->saveJpg("Detector.jpg", 300, 150, 1, -1);
Can I do similar for the entire mainwindow and its contents?
Thanks for any help