Quote Originally Posted by sekatsim View Post
MainWindowImpl mainwin;
mainwin.refreshDisplay();

As far as I can tell, this is whats causing the problem. Is there anyway I can get around this?
Do I understand correctly that you invoke refreshDisplay() before QApplication::exec()?

Maybe the error message is a bit misleading and you should try:
Qt Code:
  1. MainWindowImpl mainwin;
  2. QTimer::singleShot( 0, & mainwin, "refreshDisplay" );
To copy to clipboard, switch view to plain text mode 
(provided that refreshDisplay() is a slot)?