i have i program that dynamically create pushbutton. It will be inserted to a gridlayout wherein my gridlayout is inserted to a groupbox.
when im intializing the size of pushbutton
pushbutton
->setGeometry
(QRect(n, n, n, n
));
pushbutton->setGeometry(QRect(n, n, n, n));
To copy to clipboard, switch view to plain text mode
and put in a gridlayout, i think it ignores it.
how can i change the size of my buttons?
then i add a border image to my button
pushbutton->setStyleSheet("border-image: url(:/background/myimage.png);");
pushbutton->setStyleSheet("border-image: url(:/background/myimage.png);");
To copy to clipboard, switch view to plain text mode
but it became flat button plus the effects of button were gone.
how can i add images to my button without removing it effects?
Bookmarks