p = p.scaled(192,192);
iconLabel->setPixmap(p);
iconLabel->setGeometry(100,200,192,192);
cb
= new ControlButton
(QIcon("controlNext.png"),
QIcon("controlNextHovered.png"),
QIcon("controlNextPressed.png"),
this);
cb
->setIconSize
(QSize(192,
192));
cb->setGeometry(300,200,192,192);
iconLabel = new QLabel(this);
QPixmap p("controlNext.png");
p = p.scaled(192,192);
iconLabel->setPixmap(p);
iconLabel->setGeometry(100,200,192,192);
cb = new ControlButton(QIcon("controlNext.png"),
QIcon("controlNextHovered.png"),
QIcon("controlNextPressed.png"),
this);
cb->setIconSize(QSize(192,192));
cb->setGeometry(300,200,192,192);
To copy to clipboard, switch view to plain text mode
I have tried displaying transparent background image via QLabel and a QPushButton. ControlButton, is my custom button that I use in my project. Attached is what I get. The image is transparent over the application, but with black background over the video.
Bookmarks