当前位置: 首页 > wzjs >正文

济南在线制作网站公司建设网站算入什么会计科目

济南在线制作网站,公司建设网站算入什么会计科目,郴州网红打卡餐厅,华为企业网站建设分析效果图 先放一个效果图以供大家参考,大家可以根据自己需要的效果来调整自己的控件,日历控件实现了自定义日历选择框,设置了表头颜色,设置日历当天重要事件提醒功能。 设置表头样式 setVerticalHeaderFormat(QCalendarWidget::NoV…

效果图

先放一个效果图以供大家参考,大家可以根据自己需要的效果来调整自己的控件,日历控件实现了自定义日历选择框,设置了表头颜色,设置日历当天重要事件提醒功能。

设置表头样式

    setVerticalHeaderFormat(QCalendarWidget::NoVerticalHeader);//去掉水平表头setLocale(QLocale(QLocale::Chinese));setHorizontalHeaderFormat(QCalendarWidget::SingleLetterDayNames); //单字母setFirstDayOfWeek(Qt::Monday);QTextCharFormat format;format.setForeground(QColor(0, 211, 255));
//    format.setForeground(QColor(255, 255, 255));format.setBackground(QColor(7, 34, 64));setHeaderTextFormat(format);setWeekdayTextFormat(Qt::Saturday, format);setWeekdayTextFormat(Qt::Sunday, format);UpdateCldColor(yearShown(),monthShown());

设置周六周日表头颜色


void MyCalendar::UpdateCldColor(int y, int m)
{QTextCharFormat dateFormat;dateFormat.setForeground(QBrush(Qt::white));int d = 1;QDate curdate = QDate(y, m, d);int curday = curdate.dayOfWeek();int curmonth = curdate.month();// 找到第一个星期六while (curdate.isValid() && curday != 6){if (curday == 7){setDateTextFormat(curdate, dateFormat);}curdate = curdate.addDays(1);curday = curdate.dayOfWeek();}// 给每个周末设颜色while (curdate.isValid() && curmonth == m){for (int i = 0; i < 2; i++){if (curmonth != m) break;setDateTextFormat(curdate, dateFormat);curdate = curdate.addDays(1);curday = curdate.dayOfWeek();curmonth = curdate.month();}curdate = curdate.addDays(5);curday = curdate.dayOfWeek();curmonth = curdate.month();}}

设置状态

void MyCalendar::paintCell(QPainter *painter, const QRect &rect, const QDate &date) const
{QCalendarWidget::paintCell(painter,rect,date);painter->save();QPixmap num_map;num_map.load(":/images/calendar_num.png");
#if (QT_VERSION <= QT_VERSION_CHECK(5,0,0))QRect temp_rect;temp_rect = rect;temp_rect.setWidth(temp_rect.width()-8 );temp_rect.setHeight(temp_rect.height()-10);
#elseQRect temp_rect;QMargins mar(4,5,4,5);temp_rect = rect.marginsAdded(mar);
#endifnum_map.scaled(temp_rect.size(),Qt::KeepAspectRatio,Qt::SmoothTransformation);painter->drawPixmap(temp_rect,num_map);painter->restore();if(date == selectedDate()){painter->save();#if (QT_VERSION <= QT_VERSION_CHECK(5,0,0))QRect temp_rect;temp_rect = rect;temp_rect.setWidth(temp_rect.width()-8 );temp_rect.setHeight(temp_rect.height()-10);
#elseQRect temp_rect;QMargins mar(-4,-5,-4,-5);temp_rect = rect.marginsAdded(mar);
#endifQPixmap temp = m_backgroundPixMap.scaled(temp_rect.size(), Qt::KeepAspectRatio, Qt::SmoothTransformation); // 缩放图片以适应单元格大小painter->drawPixmap(temp_rect,temp);painter->restore();}#if 1QBrush brush;brush.setStyle(Qt::SolidPattern);brush.setColor(Qt::red);int d = 1;QDate startTime =  QDate(yearShown(), monthShown(),d);QDate endTime =  startTime.addMonths(1).addDays(-1);if(startTime <= date && date  <=  endTime  ){painter->save();QString datestr;datestr= date.toString("yyyyMMdd");QString temp_file;foreach (QFileInfo fileinfo, m_infolist){temp_file = fileinfo.absoluteFilePath();if(temp_file.contains(datestr)){brush.setColor(Qt::green);}else{}// 绘制标记painter->setBrush(brush); // 设置标记的颜色QPoint point(rect.topRight().x() - 15, rect.topRight().y() + 13);painter->drawEllipse(point, 3, 3); // 绘制一个小圆点作为标记}
#if 0for(int i=0;i<m_contents.size();i++){QString file_name = m_contents[i].file_name;if(file_name.contains(datestr)){brush.setColor(Qt::green);}else{}// 绘制标记painter->setBrush(brush); // 设置标记的颜色QPoint point(rect.topRight().x() - 15, rect.topRight().y() + 13);painter->drawEllipse(point, 3, 3); // 绘制一个小圆点作为标记}
#endifpainter->restore();}
#endif}

再来段QSS样式美化

         

QWidget
{background-color:#00274F;color:#F0F0F0; 
}/**********************************QCalendarWidget*****************************/
QCalendarWidget {font-size: 16px;min-width: 340px;min-height: 260px;color: white;}QCalendarWidget QAbstractItemView#qt_calendar_calendarview
{font-size: 16px;color: white;border: 1px solid #4b8eb5;background-color: rgb(7,34,64);selection-background-color:transparent;selection-color: white;/*  alternate-background-color:rgb(50,50,50);  */ }QCalendarWidget QAbstractItemView#qt_calendar_calendarview:disabled
{color: rgb(67, 95, 106);border-color: #999999;background-color: #666666;
}QCalendarWidget QWidget {alternate-background-color: rgb(7, 36, 70);border-image:none;
}QCalendarWidget QToolButton#qt_calendar_prevmonth {width: 26px;height: 26px;qproperty-iconSize: 32px;border-image:none;}QCalendarWidget QToolButton#qt_calendar_nextmonth {width: 26px;height: 26px;qproperty-iconSize: 32px;border-image:none;}
QCalendarWidget QToolButton:hover {background-color: rgb(7,37,72); /* 悬浮时的背景色 */color: rgb(0, 255, 255); /* 悬浮时的文字颜色 *//* 其他悬浮时的样式设置 */
}
QCalendarWidget QToolButton:precced {background-color: rgb(7,37,72); /* 悬浮时的背景色 */color: rgb(0, 255, 255); /* 悬浮时的文字颜色 *//* 其他悬浮时的样式设置 */
}

http://www.dtcms.com/wzjs/826264.html

相关文章:

  • 推荐十个国外网站做租房信息网站
  • 中小型企业网站建设的资金流动响应式学校网站模板
  • 门户网站开发的意义几年做啥网站能致富
  • 东营市报名系统网站设计公司云服务器便宜
  • 站长工具劲爆wordpress算术验证
  • 红酒 公司 网站建设网站开发个人博客
  • php根据ip 跳转网站网页设计产品介绍页面的制作
  • 网站建设类文章要发多少片app运营费用
  • 企业网站建设与推广范文东莞网站建设哪家公司好
  • 如何免费做公司网站手机网站左右滑动效果
  • 网站二级域名解析智能软件开发就业前景
  • 国外网站设计风格做盗版电影网站后果
  • asp做网站的优势是什么优秀网站网址
  • 常德建设网站网站做cdn怎么弄
  • 网站建设的面试要求企业网站域名注册
  • 专门做运动装备的网站推荐网站建设收费标准
  • 使用微信做网站第三方登录怎样营销
  • 国外域名抢注网站厦门公司建站
  • 网站开发知识版权租网站服务器
  • 网站设计论文结论网站建设职业情况
  • 手机网站 jquery 特效只做网站可以在百度里收到吗
  • 长沙网站建设案例无锡 电子商务网站建设
  • 做股东变更要上哪个网站城阳网站制作
  • 张梅 合肥网站建设爱站工具下载
  • 鄂州网站推广优化技巧广州万户网络技术有限公司招聘
  • 兼职建设网站免费ppt模板下载不用钱的
  • wordpress搭建付费网站如何弄网站
  • 网站内容页怎么设计模板网站软文是什么
  • 网站买源代码用vue element-ui做的网站
  • 农村小学校园网站建设方案商丘专业做网站