
As shown above, the mouse is suspended or selected items, can set the background color, but how to set the background to the picture?
I set in the QSS "background - image: url (:/PNG/67 PNG);" ); , but no effect?
Have to know what reason be? How to set up to?
CodePudding user response:
QMenu: : item {
Margin - left: 5 px;
Margin - right: 5 px;
background-color: transparent;
Border - image: url (1. JPG);
}
