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

河西集团网站建设做网站推销好做吗

河西集团网站建设,做网站推销好做吗,wordpress局域网中看,免费seo网站诊断免费QTabWidget 是 Qt 框架中用于创建选项卡式界面的控件。可以通过样式表(QSS,Qt Style Sheets)来设置 QTabWidget 的外观。以下是一些常见的样式设置示例: 1. 基本样式设置 tab_widget.setStyleSheet("""QTabWidge…

QTabWidget 是 Qt 框架中用于创建选项卡式界面的控件。可以通过样式表(QSS,Qt Style Sheets)来设置 QTabWidget 的外观。以下是一些常见的样式设置示例:

1. 基本样式设置

tab_widget.setStyleSheet("""QTabWidget::pane {border: 1px solid #ccc;background-color: #f0f0f0;}QTabBar::tab {background: #ddd;border: 1px solid #ccc;padding: 10px;font-size: 14px;}QTabBar::tab:selected {background: #f0f0f0;border-bottom-color: #f0f0f0;}QTabBar::tab:hover {background: #eee;}
""")

2. 设置选项卡的宽度和高度

tab_widget.setStyleSheet("""QTabBar::tab {width: 100px;height: 30px;}
""")

3. 设置选项卡的圆角

tab_widget.setStyleSheet("""QTabBar::tab {border-top-left-radius: 5px;border-top-right-radius: 5px;}
""")

4. 设置选项卡的背景颜色和字体颜色

tab_widget.setStyleSheet("""QTabBar::tab {background: #555;color: white;}QTabBar::tab:selected {background: #777;color: yellow;}
""")

5. 设置选项卡的图标和文本对齐方式

tab_widget.setStyleSheet("""QTabBar::tab {padding-left: 20px; /* 图标和文本之间的间距 */text-align: left; /* 文本左对齐 */}
""")

6. 设置选项卡的关闭按钮

tab_widget.setStyleSheet("""QTabBar::close-button {image: url(close.png); /* 关闭按钮的图标 */subcontrol-position: right; /* 关闭按钮的位置 */}QTabBar::close-button:hover {background: #f00; /* 鼠标悬停时的背景颜色 */}
""")

7. 设置选项卡的边框和间距

tab_widget.setStyleSheet("""QTabWidget::pane {border: 2px solid #ccc;margin: 0px;padding: 0px;}QTabBar::tab {margin: 0px;padding: 5px;}
""")

8. 设置选项卡的渐变背景

tab_widget.setStyleSheet("""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);}QTabBar::tab:selected {background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #fafafa, stop: 1 #f0f0f0);}
""")

9. 设置选项卡的阴影效果

tab_widget.setStyleSheet("""QTabBar::tab {border: 1px solid #ccc;border-bottom-color: #f0f0f0; /* 底部边框颜色 */margin-right: 2px; /* 选项卡之间的间距 */box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1); /* 阴影效果 */}
""")

10. 设置选项卡的字体

tab_widget.setStyleSheet("""QTabBar::tab {font-family: Arial;font-size: 12px;font-weight: bold;}
""")

11. 设置选项卡的图标

tab_widget.setStyleSheet("""QTabBar::tab {icon-size: 24px; /* 图标大小 */}
""")

12. 设置选项卡的悬停效果

tab_widget.setStyleSheet("""QTabBar::tab:hover {background: #eee;color: #000;}
""")

13. 设置选项卡的禁用状态

tab_widget.setStyleSheet("""QTabBar::tab:disabled {background: #ccc;color: #888;}
""")

14. 设置选项卡的选中状态

tab_widget.setStyleSheet("""QTabBar::tab:selected {background: #f0f0f0;border-bottom-color: #f0f0f0;}
""")

15. 设置选项卡的底部边框

tab_widget.setStyleSheet("""QTabBar::tab {border-bottom: 2px solid #ccc;}QTabBar::tab:selected {border-bottom: 2px solid #f00;}
""")

16. 设置选项卡的顶部边框

tab_widget.setStyleSheet("""QTabBar::tab {border-top: 2px solid #ccc;}QTabBar::tab:selected {border-top: 2px solid #f00;}
""")

17. 设置选项卡的左右边框

tab_widget.setStyleSheet("""QTabBar::tab {border-left: 2px solid #ccc;border-right: 2px solid #ccc;}QTabBar::tab:selected {border-left: 2px solid #f00;border-right: 2px solid #f00;}
""")

18. 设置选项卡的背景图片

tab_widget.setStyleSheet("""QTabBar::tab {background-image: url(tab_bg.png);}QTabBar::tab:selected {background-image: url(tab_bg_selected.png);}
""")

19. 设置选项卡的渐变边框

tab_widget.setStyleSheet("""QTabBar::tab {border: 1px solid qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #ccc, stop: 1 #999);}QTabBar::tab:selected {border: 1px solid qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #f00, stop: 1 #c00);}
""")

20. 设置选项卡的圆角边框

tab_widget.setStyleSheet("""QTabBar::tab {border: 1px solid #ccc;border-top-left-radius: 5px;border-top-right-radius: 5px;}QTabBar::tab:selected {border: 1px solid #f00;border-top-left-radius: 5px;border-top-right-radius: 5px;}
""")

21. 设置选项卡的阴影边框

tab_widget.setStyleSheet("""QTabBar::tab {border: 1px solid #ccc;box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);}QTabBar::tab:selected {border: 1px solid #f00;box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);}
""")

22. 设置选项卡的渐变背景和边框

tab_widget.setStyleSheet("""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: 1px solid qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #ccc, stop: 1 #999);}QTabBar::tab:selected {background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #fafafa, stop: 1 #f0f0f0);border: 1px solid qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #f00, stop: 1 #c00);}
""")

23. 设置选项卡的渐变背景和圆角边框

tab_widget.setStyleSheet("""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: 1px solid qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #ccc, stop: 1 #999);border-top-left-radius: 5px;border-top-right-radius: 5px;}QTabBar::tab:selected {background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #fafafa, stop: 1 #f0f0f0);border: 1px solid qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #f00, stop: 1 #c00);border-top-left-radius: 5px;border-top-right-radius: 5px;}
""")

24. 设置选项卡的渐变背景和阴影边框

tab_widget.setStyleSheet("""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: 1px solid qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #ccc, stop: 1 #999);box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);}QTabBar::tab:selected {background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #fafafa, stop: 1 #f0f0f0);border: 1px solid qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #f00, stop: 1 #c00);box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);}
""")

25. 设置选项卡的渐变背景和圆角阴影边框

tab_widget.setStyleSheet("""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: 1px solid qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #ccc, stop: 1 #999);border-top-left-radius: 5px;border-top-right-radius: 5px;box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);}QTabBar::tab:selected {background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #fafafa, stop: 1 #f0f0f0);border: 1px solid qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #f00, stop: 1 #c00);border-top-left-radius: 5px;border-top-right-radius: 5px;box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);}
""")

26. 设置选项卡的渐变背景和圆角阴影边框

tab_widget.setStyleSheet("""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: 1px solid qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #ccc, stop: 1 #999);border-top-left-radius: 5px;border-top-right-radius: 5px;box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);}QTabBar::tab:selected {background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #fafafa, stop: 1 #f0f0f0);border: 1px solid qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #f00, stop: 1 #c00);border-top-left-radius: 5px;border-top-right-radius: 5px;box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);}
""")

27. 设置选项卡的渐变背景和圆角阴影边框

tab_widget.setStyleSheet("""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: 1px solid qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #ccc, stop: 1 #999);border-top-left-radius: 5px;border-top-right-radius: 5px;box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);}QTabBar::tab:selected {background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #fafafa, stop: 1 #f0f0f0);border: 1px solid qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #f00, stop: 1 #c00);border-top-left-radius: 5px;border-top-right-radius: 5px;box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);}
""")

28. 设置选项卡的渐变背景和圆角阴影边框

tab_widget.setStyleSheet("""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: 1px solid qlineargradient(x1

文章转载自:

http://SjoxgojV.Lmjtp.cn
http://8nJm5ygp.Lmjtp.cn
http://zPR9hD01.Lmjtp.cn
http://A3kAFNte.Lmjtp.cn
http://OSTIggo5.Lmjtp.cn
http://KAR6ptam.Lmjtp.cn
http://pR99iEAe.Lmjtp.cn
http://kO8H9jbe.Lmjtp.cn
http://i9EHTYxF.Lmjtp.cn
http://rL7OtmLG.Lmjtp.cn
http://LIOC47bM.Lmjtp.cn
http://GHBYIOV5.Lmjtp.cn
http://3iyXXhku.Lmjtp.cn
http://g2uTPfA7.Lmjtp.cn
http://OYSSll1i.Lmjtp.cn
http://u2SXLUdY.Lmjtp.cn
http://zTmGr5x4.Lmjtp.cn
http://2ZLxUhS3.Lmjtp.cn
http://NgiG1UHy.Lmjtp.cn
http://UPM3cQwR.Lmjtp.cn
http://53vUEach.Lmjtp.cn
http://XzZwjWZ6.Lmjtp.cn
http://eGDptM04.Lmjtp.cn
http://XtZVnGpj.Lmjtp.cn
http://usdEOprL.Lmjtp.cn
http://LWvb5RXY.Lmjtp.cn
http://SpUyVAdr.Lmjtp.cn
http://Ypm7i5Bd.Lmjtp.cn
http://5flF9ljK.Lmjtp.cn
http://qBh5al5X.Lmjtp.cn
http://www.dtcms.com/wzjs/717751.html

相关文章:

  • 东莞凤岗哪里有学做网站的花瓣wordpress主题
  • 网站建设软件 免费网站推广的企业
  • 网站内容分析网站开发技术规范要求
  • 免费网站免费在线观看网站美观界面
  • 网站改不了分类南宫企业做网站
  • 互动科技 网站乐清新闻综合频道节目表
  • app程序制作seo常用工具包括
  • 自己做网站的流程视频教程企业网站设计制作
  • 哪里有做空包网站的昆明seo公司网站
  • 河北住房和城乡建设局网站首页html5国外网站模板html源码下载
  • 零六年自助建设网站电脑建网站软件
  • 西安企业建站排名哪个网站建设商招代理
  • 专业做化妆品的网站网站建设实训主要收获及体会
  • 个人免费网站建站排名建一个多用户团购网站需要多少钱
  • 果洛电子商务网站建设多少钱现今网站开发的主流框架
  • 南阳教育网站平台网页版梦幻西游宠物
  • 网站产品内容在数据库如何做正规电影网站
  • 瑞安哪里有做百度的网站利用论坛推广网站
  • 济宁网站一个网站怎么留住用户
  • 营销型网站 易网拓深圳网站建设设计制作
  • 建网站需要什么手需wordpress被墙变慢
  • 北京专业响应式网站建设运城 网站 建设 招聘
  • 阿里云服务器如何实现一个空间绑定两个不同主体的网站上海专业的网站建
  • 网站开发实习生衡水龙腾网站建设
  • 广州服务好的网站推广工具wordpress 自定义评论样式
  • 门户网站建设总结河南省建设厅网站公示公告
  • 内网网站如何建设嘉定注册公司
  • 中山市建设局网站窗口电话永康关键词优化
  • 郑州网站制作的公司哪家好怎么生成网页
  • 边境网站建设方案网站开发设计比赛