QT QCalendar 自定义样式

#qt_calendar_calendarview {

background: white;

}

 

#qt_calendar_navigationbar {

background: rgba(255,255,255, 255);

}

 

QToolButton {

icon-size: 30px, 30px;

width: 50px;

height: 30px;

}

QToolButton::hover {

border:none;

}

QToolButton#qt_calendar_prevmonth {

 

width: 100px;

qproperty-icon: url(:/Yunshixun/Resources/theme/1.25/MainPanel/drawable/btn_left_normal.png);

}

 

QToolButton#qt_calendar_nextmonth {

width: 100px;

qproperty-icon:url(:/Yunshixun/Resources/theme/1.25/MainPanel/drawable/btn_right_normal.png);

}

 

QToolButton#qt_calendar_monthbutton {

color:#666666;

padding:0px 5px;

}

 

QToolButton#qt_calendar_yearbutton {

color:#666666;

}

 

QToolButton#qt_calendar_monthbutton::menu-indicator{

subcontrol-origin: padding;

subcontrol-position: center right;

right: 0px;

width: 10px;

}

 

QAbstractItemView {

color: #313131;

selection-color: white;

selection-background-color: rgb(36, 166, 239);

font: 15px;

}

 

 

/*日历*/

QCalendarWidget QHeaderView {

qproperty-minimumSectionSize:0;

}

QCalendarWidget QMenu{

background-color: rgb(133,133,133);

}

#qt_calendar_calendarview {

background-color: rgba(68,84,106,1);

font: 16px;

}

#qt_calendar_monthbutton {

background-color: rgba(68,84,106,1);

}

#qt_calendar_yearbutton {

background-color: rgba(68,84,106,1);

}

#qt_calendar_yearedit {

background-color: rgba(68,84,106,1);

}

#qt_calendar_navigationbar {

background-color: rgba(68,84,106,1);

}

QToolButton#qt_calendar_prevmonth {

background: transparent;

border: none;

width: 40px;

qproperty-icon: url(:/images/images/btnPrevMonth.png);

}

QToolButton#qt_calendar_nextmonth {

background: transparent;

border: none;

width: 40px;

qproperty-icon: url(:/images/images/btnNextMonth.png);

}

QCalendarWidget QAbstractItemView {

color: gray;

}

QCalendarWidget QTableView

{alternate-background-color: rgb(255, 255, 255);

 

}

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值