官术网_书友最值得收藏!

How it works...

If you are ever involved in web development using HTML and CSS, Qt's style sheet works exactly the same way as CSS. Style sheets provide the definitions to describe the presentation of the widgets  what the colors are for each element in the widget group, how thick the border should be, and so on and so forth. If you specify the name of the widget to the style sheet, it will change the style of the particular PushButton widget with the name you provide. None of the other widgets will be affected and will remain as the default style.

To change the name of a widget, select the widget from either the form editor or the Object Inspector and change the property called objectName in the property window. If you have used the ID selector previously to change the style of the widget, changing its object name will break the style sheet and lose the style. To fix this problem, simply change the object name in the style sheet as well.

主站蜘蛛池模板: 登封市| 定安县| 眉山市| 闽清县| 定安县| 天津市| 鹿泉市| 交城县| 霍城县| 永川市| 肥西县| 墨竹工卡县| 庆云县| 东兴市| 大冶市| 丰原市| 和平县| 达孜县| 常德市| 城固县| 宁夏| 革吉县| 饶平县| 公主岭市| 南靖县| 廉江市| 武定县| 东源县| 鹤岗市| 亚东县| 台北县| 友谊县| 鸡泽县| 仙游县| 安新县| 卓资县| 囊谦县| 卢氏县| 青铜峡市| 盐津县| 金湖县|