tab Recently watching Qss things want to make a browser-like tabs effect , the idea is to stick a row QpushButton, then set each button 's styleSheet the border-image property . Found that if pushButton not as long , then the picture will stretch effect looks ugly. This how to get ah ? How to make different lengths and was elected to the border nowadays do not have that button is similar to the effect of the browser tab ? Thank you ~
------ Solution -------------------------------------- ------
------ eference ---------------------------------------
get the original addition to setting the border-image of the picture, and then set about cutting the picture position to explicitly set the border-width value with shear can be the same .
border-image: url (picfilename) 3;
border-top-width: 3px;
border-right-width: 3px;
border-left-width: 3px;
没有评论:
发表评论