Home > Mobile >  PqQt5 setMask pictures showed is not complete, can only display a profile
PqQt5 setMask pictures showed is not complete, can only display a profile

Time:09-26

This is the function
Def mypix (self) :
# the self. The update ()

# self. Pix=QPixmap ("./img/shime1. PNG ', '0', Qt. AvoidDither | Qt. ThresholdAlphaDither | Qt. ThresholdDither)
Self. Pix=QPixmap ("./img/shime1. PNG ')
The self. The resize (self. Pix. The size ())
Self. SetMask (self. Pix. Mask ())
  •  Tags:  
  • Qt
  • Related