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

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.

主站蜘蛛池模板: 探索| 四子王旗| 交口县| 濮阳县| 原阳县| 龙江县| 临沧市| 揭阳市| 广水市| 新乡市| 昌图县| 龙胜| 封丘县| 特克斯县| 阳江市| 抚远县| 修水县| 抚顺市| 自贡市| 石家庄市| 西平县| 双辽市| 砚山县| 瓮安县| 渭南市| 奇台县| 新沂市| 南漳县| 腾冲县| 南投市| 木兰县| 长海县| 台安县| 平谷区| 沧州市| 法库县| 驻马店市| 衡南县| 从化市| 西林县| 隆回县|