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药药
  • 相关阅读:
    ubuntu16.04系统安装
    SQL注入之Sqli-labs系列第二十六关(过滤空格、注释符、逻辑运算符注入)和第二十六A
    提权心法(2)提权基本流程
    布尔盲注
    提权心法(1)信息搜集很重要
    POST注入-双注入
    POST型注入-报错注入
    字符型注入
    Web中间件常见安全漏洞总结
    SSRF 从入门到批量找漏洞
  • 原文地址:https://www.cnblogs.com/fengyaoyao/p/10929284.html
Copyright © 2011-2022 走看看