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

萍乡网站seo百度平台联系方式

萍乡网站seo,百度平台联系方式,id怎样转wordpress,网站开发最适合的浏览器很高兴在雪易的CSDN遇见你 ,给你糖糖 欢迎大家加入雪易社区-CSDN社区云 前言 本文分享QT控件QTabWidget&QTabBar的样式设计,介绍两者可以自定义的内容,以及如何定义,希望对各位小伙伴有所帮助! 感谢各位小伙伴…

很高兴在雪易的CSDN遇见你 ,给你糖糖

欢迎大家加入雪易社区-CSDN社区云 


前言

本文分享QT控件QTabWidget&QTabBar的样式设计,介绍两者可以自定义的内容,以及如何定义,希望对各位小伙伴有所帮助!

感谢各位小伙伴的点赞+关注,小易会继续努力分享,一起进步!

你的点赞就是我的动力(^U^)ノ~YO

我将收获到的:

        1.

        2.

        3.

目录

1. 

2.

3.


1. QTabWidget可自定义内容

        》QTabWidget::pane{} 定义tabWidgetFrame

        》QTabWidget::tab-bar{} 定义TabBar的位置

        》QTabWidget::tab{}定义Tab的样式

        》QTabWidget::tab:selected{}定义Tab被选中时的样式

        》QTabWidget::tab:hover{}定义Tab鼠标悬停时的样式

        》QTabWidget::tab:!selected{}定义Tab在非选中时的样式

2. QTabBar可自定义内容

        》QTabBar::tear{}

        》QTabBar::scroller{}

        》QTabBar QToolButton{} 定义QTabBar下的QToolButton的样式

        》QTabBar QToolButton::right-arrow{} /* the arrow mark in the tool buttons */

        》QTabBar QToolButton::left-arrow{}

        》QTabBar::close-button{}

        》QTabBar::close-button:hover{}

3. 可直接复制的QTableWidget样式

        》雪易样式

/*style-dark*/
QTabWidget::pane { /* The tab widget frame */border: 1px solid #00BB9E;border-radius:5px;}QTabWidget::tab-bar {alignment: right;
}/* Style the tab using the tab sub-control. Note thatit reads QTabBar _not_ QTabWidget */
QTabBar::tab {background: #D3D3D3;/*qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);*/border: none;border-top-left-radius: 4px;border-top-right-radius: 4px;min-width: 80px;padding: 8px;color:#000000;
}QTabBar::tab:selected, QTabBar::tab:hover {background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #fafafa, stop: 1.0 #00BB9E);}/**/QTabBar::tab:selected {border: 1px solid #00BB9E;/*border-bottom-color: #00BB9E;  same as pane color*/ 
}

        》QT提供样式1

QTabWidget::pane { /* The tab widget frame */border-top: 2px solid #C2C7CB;
}QTabWidget::tab-bar {left: 5px; /* move to the right by 5px */
}/* Style the tab using the tab sub-control. Note thatit reads QTabBar _not_ QTabWidget */
QTabBar::tab {background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);border: 2px solid #C4C4C3;border-bottom-color: #C2C7CB; /* same as the pane color */border-top-left-radius: 4px;border-top-right-radius: 4px;min-width: 8ex;padding: 2px;
}QTabBar::tab:selected, QTabBar::tab:hover {background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #fafafa, stop: 0.4 #f4f4f4,stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
}QTabBar::tab:selected {border-color: #9B9B9B;border-bottom-color: #C2C7CB; /* same as pane color */
}QTabBar::tab:!selected {margin-top: 2px; /* make non-selected tabs look smaller */
}

        》QT提供样式2

QTabWidget::pane { /* The tab widget frame */border-top: 2px solid #C2C7CB;
}QTabWidget::tab-bar {left: 5px; /* move to the right by 5px */
}/* Style the tab using the tab sub-control. Note thatit reads QTabBar _not_ QTabWidget */
QTabBar::tab {background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);border: 2px solid #C4C4C3;border-bottom-color: #C2C7CB; /* same as the pane color */border-top-left-radius: 4px;border-top-right-radius: 4px;min-width: 8ex;padding: 2px;
}QTabBar::tab:selected, QTabBar::tab:hover {background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #fafafa, stop: 0.4 #f4f4f4,stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
}QTabBar::tab:selected {border-color: #9B9B9B;border-bottom-color: #C2C7CB; /* same as pane color */
}QTabBar::tab:!selected {margin-top: 2px; /* make non-selected tabs look smaller */
}/* make use of negative margins for overlapping tabs */
QTabBar::tab:selected {/* expand/overlap to the left and right by 4px */margin-left: -4px;margin-right: -4px;
}QTabBar::tab:first:selected {margin-left: 0; /* the first selected tab has nothing to overlap with on the left */
}QTabBar::tab:last:selected {margin-right: 0; /* the last selected tab has nothing to overlap with on the right */
}QTabBar::tab:only-one {margin: 0; /* if there is only one tab, we don't want overlapping margins */
}

        》QT提供样式3

 

QTabWidget::pane { /* The tab widget frame */border-top: 2px solid #C2C7CB;position: absolute;top: -0.5em;
}QTabWidget::tab-bar {alignment: center;
}/* Style the tab using the tab sub-control. Note thatit reads QTabBar _not_ QTabWidget */
QTabBar::tab {background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);border: 2px solid #C4C4C3;border-bottom-color: #C2C7CB; /* same as the pane color */border-top-left-radius: 4px;border-top-right-radius: 4px;min-width: 8ex;padding: 2px;
}QTabBar::tab:selected, QTabBar::tab:hover {background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #fafafa, stop: 0.4 #f4f4f4,stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
}QTabBar::tab:selected {border-color: #9B9B9B;border-bottom-color: #C2C7CB; /* same as pane color */
}

结论:

        本文介绍了QTabWidget和QTabBar在进行样式设计时可设置的选项,并给出了几个示例,各位小伙伴可以自行选择!

感谢各位小伙伴的点赞+关注,小易会继续努力分享,一起进步!

你的赞赏是我的最最最最大的动力(^U^)ノ~YO

http://www.hengruixuexiao.com/news/23272.html

相关文章:

  • 企业建网站公司多少钱seo排名赚app最新版本
  • 开发商逾期交房怎么赔偿合肥网络推广优化公司
  • 襄阳做网站多少钱宁波做网站的公司
  • wordpress多站点优缺点google chrome浏览器
  • 我爱做衣服网站手机百度app免费下载
  • 动态网站开发实训总结6武汉百度seo网站优化
  • wap网站还有能打开的吗aso推广平台
  • 吉林省水土保持生态建设网站百度收录提交
  • 网站案例分析湖南巨量引擎广告投放平台官网
  • 如何选择一个好的网站建设公司酒店机票搜索量暴涨
  • django做的电子商务网站网站开发外包
  • 建e网手机appseo推广优化公司哪家好
  • 卖花网站源码推广平台有哪些渠道
  • 用什么网站做一手楼好网站收录优化
  • 有没有做牛羊角的网站电商平台推广公司
  • 网站建设教程速成百度收录情况查询
  • 数据库网站开发工具seo上海优化
  • 中山市文联灯饰有限公司网站谁做的友情链接seo
  • 越秀区建网站的公司百度一下百度搜索官网
  • 余杭区建设局网站手机版谷歌浏览器入口
  • 中文搜索引擎网站做小程序的公司
  • 建网站的步骤和方法网站建设制作免费
  • 佛山企业网站建设策划自己的网站怎么样推广优化
  • 商标注册网站缴费入口电商网站排名
  • 在线培训网站怎么做东莞seo网络推广专
  • 西安网站建设熊掌个人网页设计
  • 做ppt常用图片网站有哪些java培训机构
  • 临城网站建设百度一下你就知道移动官网
  • 页面效果华丽的网站优化设计五年级下册数学答案
  • 推广网站哪家做的好论坛seo网站