Maybe you could just
Qt Code:
  1. setGeometry(QDesktopWidget().availableGeometry());
To copy to clipboard, switch view to plain text mode 
?