Home > Mobile >  How to set the background image QMenu the item?
How to set the background image QMenu the item?

Time:02-26


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);
}


  •  Tags:  
  • Qt
  • Related