How can I grab a window with widgets and title bar? I am trying to save a snapshow of a QMainWindow with widgets and title bar.