Qt Code:
  1. setWindowFlags(Qt::WindowStaysOnTopHint);
  2. setWindowFlags(Qt::FramelessWindowHint);
To copy to clipboard, switch view to plain text mode 
Use this, the window is borderless, but it does not stay on top.

Qt Code:
  1. setWindowFlags(Qt::FramelessWindowHint);
  2. setWindowFlags(Qt::WindowStaysOnTopHint);
To copy to clipboard, switch view to plain text mode 
The window stays on top, but it has a border.

Please help, thanks!