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