That's not good. Try:
Qt Code:
  1. setWindowFlags(Qt::Popup);
To copy to clipboard, switch view to plain text mode 
or
Qt Code:
  1. setWindowFlags(Qt::ToolTip);
To copy to clipboard, switch view to plain text mode 

Also try simplifying your code as much as possible. First of all see how everything behaves when you substitute QWebView with some other widget (say... QLabel).