Search code examples
qtstylesheet

How to perserve border-image's corner as it is while stretch other parts in qt stylesheet?


Duplicate:An unsolveded question.

The question above is posted about 1 year ago,but no appropriate answer is posted.Now I encountered the same problem.


Solution

  • understanding border-image describes well.We can set the middle four numbers of the shorthand rule,which described like border-image:url(:/Resources/item_back.png) 1 2 3 4 stretch stretch; to proper value to make all your image corner's details as it is.