Remove borders and backgrounds, leaving only pictures

 

As described above, the first picture and the background have a border, the second border and background images do not, as long as the following code in the constructor:

setWindowFlags (Qt :: FramelessWindowHint); // go to the border   
setAttribute (Qt :: WA_TranslucentBackground); // transparent background

  

Guess you like

Origin www.cnblogs.com/GEEK-ZHAO/p/12370093.html