QSS控件的边框阴影效果和四个角的圆角设置

 QFrame { "
                              "background-color: transparent;"
                              "border-top: 10px solid qlineargradient(y0:0, y1:1,\
                                stop: 0 #ececef, stop: 1 white);"
                              "border-left: 10px solid qlineargradient(x0:0, x1:1,\
                                stop: 0 #ececef, stop: 1 white);"
                             "border-bottom: 10px solid qlineargradient(y0:0, y1:1,\
                                stop: 0 white, stop: 1  #ececef);"
                             "border-right: 10px solid qlineargradient(x0:0, x1:1,\
                               stop:  0 white, stop: 1 #ececef);
				
    border-top-left-radius:4px;
    border-top-right-radius:0px;
    border-bottom-right-radius:0px;
    border-bottom-left-radius:4px;
    border-right: transparent;
}

你可能感兴趣的:(qt,qt,c)