Qt Code:
  1. auto*w=new Dialog1();
  2. w->show();
To copy to clipboard, switch view to plain text mode 
QMainWindow or QDialog show() - before displaying, the window area is painted white. You may not notice this on fast computers. How to avoid this ?

If I use
Qt Code:
  1. auto*w=new Dialog1();
  2. w->setWindowFlags(Qt::FramelessWindowHint);
  3. w->show();
To copy to clipboard, switch view to plain text mode 
then there is no white paint, but there is no window header


Windows 10. Desktop Qt 5.15.0 MinGW 64-bit

Link to project https://drive.google.com/file/d/1vpu...e5SZAX46Z/view

Video https://drive.google.com/file/d/1-gs...ew?usp=sharing