• Qt Spinbox,DateTimeEdit等控件样式表:箭头在左右两边QSS代码示例


    图示:
    在这里插入图片描述

     1 /*spinbox 抬起样式*/
     2 QDateTimeEdit::up-button,QTimeEdit::up-button,QDoubleSpinBox::up-button,QSpinBox::up-button {subcontrol-origin:border;
     3     subcontrol-position:right;
     4     image: url(:/image/add.png);
     5      60px;
     6     height: 60px;                
     7 }
     8 QDateTimeEdit::down-button,QTimeEdit::down-button,QDoubleSpinBox::down-button,QSpinBox::down-button {subcontrol-origin:border;
     9     subcontrol-position:left;
    10     image: url(:/image/reduce.png);
    11      60px;
    12     height: 60px;
    13 }
    14 /*按钮按下样式*/
    15 QDateTimeEdit::up-button:pressed,QTimeEdit::up-button:pressed,QDoubleSpinBox::up-button:pressed,QSpinBox::up-button:pressed{subcontrol-origin:border;
    16     subcontrol-position:right;
    17     image: url(:/image/add_click.png);
    18      60px;
    19     height: 60px;        
    20 }
    21  
    22 QDateTimeEdit::down-button:pressed,QTimeEdit::down-button:pressed,QDoubleSpinBox::down-button:pressed,QSpinBox::down-button:pressed{
    23     subcontrol-position:left;
    24     image: url(:/image/reduce_click.png);
    25      60px;
    26     height: 60px;}
    27 }
  • 相关阅读:
    对MVC HtmlHepler控件扩展(转载)
    通过源代码研究ASP.NET MVC中的Controller和View(一)(转载)
    rasmol使用方法
    经典笑话
    直线回归的概念
    众数
    Python ImportError: No module named Tkinter
    小干扰RNA
    complementary DNA, cDNA
    反义RNA
  • 原文地址:https://www.cnblogs.com/ybqjymy/p/14808594.html
Copyright © 2020-2023  润新知