Did you include the QMessageBox?
Qt Code:
  1. #include <QMessageBox>
To copy to clipboard, switch view to plain text mode