zoukankan      html  css  js  c++  java
  • QTreeWidget setstylesheet扎(未完待续)

    1.open&close小箭头

    open&normal

    QTreeView::branch:has-children:!has-siblings:closed,

    QTreeView::branch:closed:has-children:has-siblings

    {

    border-image: none;

    image: url();

    }

    open&active(包括hover、pressed)

    QTreeView::branch:has-children:!has-siblings:closed:hover,

    QTreeView::branch:closed:has-children:has-siblings:hover

    {

    border-image: none;

    image: url();

    }

    QTreeView::branch:has-children:!has-siblings:closed:pressed,

    QTreeView::branch:closed:has-children:has-siblings:pressed

    {

    border-image: none;

    image: url();

    }

    open&disable

    QTreeView::branch:has-children:!has-siblings:closed:disable,

    QTreeView::branch:closed:has-children:has-siblings:disable

    {

    border-image: none;

    image: url();

    }

    closed&normal

    QTreeView::branch:open:has-children:!has-siblings,

    QTreeView::branch:open:has-children:has-siblings

    {

    border-image: none;

    image: url();

    }

    closed&active(包括hover、pressed)

    QTreeView::branch:open:has-children:!has-siblings:hover,

    QTreeView::branch:open:has-children:has-siblings:hover

    {

    border-image: none;

    image: url();

    }

    QTreeView::branch:open:has-children:!has-siblings:pressed,

    QTreeView::branch:open:has-children:has-siblings:pressed

    {

    border-image: none;

    image: url();

    }

    closed&disable

    QTreeView::branch:open:has-children:!has-siblings:disable,

    QTreeView::branch:open:has-children:has-siblings:disable

    {

    border-image: none;

    image: url();

    }

    2.vertical&horizontal scrollbar

    QScrollBar:vertical {

    background: #FFFFFF;

    8px;

    margin: 0 0 0 0;}

    QScrollBar::handle:vertical {

    background: #CCCCCC;

    6px;

    margin: 0 1px 0 1px;

    border: none;}

    QScrollBar::add-line:vertical {

    background: #CCCCCC;

    height: 0px;

    subcontrol-position: bottom;

    subcontrol-origin: margin;}

    QScrollBar::sub-line:vertical {

    background: #CCCCCC;

    height: 0px;

    subcontrol-position: top;

    subcontrol-origin: margin;}

    QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical {

    border: 1px solid grey;

    3px;

    height: 3px;

    background: white;}

    QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {

    background: none;}

    3.Tips

    (1)setstylesheet 中间加个:可以当作判断条件&&来使用

    Hunter药药
  • 相关阅读:
    多测师肖老师_设计用例方法之场景法___(4.6)
    多测师肖老师_设计用例方法之正交表___(4.5)
    多测师肖老师_设计用例方法之因果图___(4.4)
    多测师肖老师_设计用例方法之边界值___(4.3)
    多测师肖老师_设计用例方法之状态迁移法___(4.7)
    多测师肖老师_设计用例方法之等价类___(4.2)
    多测师肖老师_设计用例方法之微信发红包xmind图___(5.1)
    Python+Appium自动化环境搭建
    QQ传文件测试要点
    Python算法(一)冒泡排序
  • 原文地址:https://www.cnblogs.com/fengyaoyao/p/10929284.html
Copyright © 2011-2022 走看看