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

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.

主站蜘蛛池模板: 蓝田县| 巩留县| 封丘县| 绍兴市| 五河县| 康保县| 博湖县| 依兰县| 牡丹江市| 浮梁县| 伊春市| 贺兰县| 霍邱县| 汨罗市| 仙游县| 长宁县| 福州市| 田阳县| 铁岭县| 阜南县| 临桂县| 十堰市| 汉寿县| 洱源县| 龙胜| 太康县| 房产| 阿合奇县| 钦州市| 贵州省| 芮城县| 穆棱市| 西乌珠穆沁旗| 汨罗市| 临颍县| 白河县| 白银市| 精河县| 吉首市| 红河县| 海城市|