Important: Please read the Qt Code of Conduct -

Make pixmap transparent on QPushButton

  • Hello ,

    i want to set transparent pixmap on QPushButton. the image that is loaded not transparent.

    QImage image("ex.xpm")
    QPixmap pix(image.copy(, 0,.width,height));

    here ex.xpm is not transparent. please help me.

  • actually i want to change background of QPixmap image to transparent

Log in to reply