I am creating a custom triangular button from a push button, using PNG/svgs as pictures.(alphas are set). However, when I attempt to set a mask( so you can only click on the triangle rather than the encompassing rectangle), it would not work in the MAC side, but it works perfectly fine in the windows side. Does anyone know what the issue is?
here is a snippet of my code
#include <QPixmap>
#include <QBitmap>
#include <QDebug>
...
ui->setupUi(this);
QPixmap pixmap
(":/Button1/triangle.svg");
ui->pushButton->setMask(pixmap.mask());
#include <QPixmap>
#include <QBitmap>
#include <QDebug>
...
ui->setupUi(this);
QPixmap pixmap(":/Button1/triangle.svg");
ui->pushButton->setMask(pixmap.mask());
To copy to clipboard, switch view to plain text mode
Bookmarks