2 Star 1 Fork 7

libaineu2004 / QtHello

forked from 执阙 / QtHello 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

QtHello

介绍

Qt widget皮肤库

运行截图

使用教程

  1. 为要使用该皮肤库的控件添加字符串类型的动态属性”styleClass“ 添加动态属性
  2. 选择窗体右键,选择更改样式表,粘贴qss目录下的bootstrap.qss的文件内容 应用样式
  3. 对要美化控件填写styleClass属性的值,多个值以空格分隔 设置styleClass值
  4. 调整控件大小,调整完成后按钮和文本框类控件的高度和宽度要额外增加4px以适应获取焦点时边框的变化

已经美化的控件

QPushButton,QLineEdit,QMenu,QMenuBar,QCombobox

styleClass值

text-*:设置控件中字体颜色,若text-white设置字体颜色为白色,

  • text-muted
  • text-primary
  • text-success
  • text-info
  • text-warning
  • text-danger
  • text-secondary
  • text-dark
  • text-light
  • text-white

bg-*:设置控件背景颜色

  • bg-primary
  • bg-success
  • bg-info
  • bg-warning
  • bg-danger
  • bg-secondary
  • bg-dark
  • bg-light

btn-*:QPushButton的额外样式

  • btn-primary
  • btn-secondary
  • btn-success
  • btn-info
  • btn-warning
  • btn-danger
  • btn-dark
  • btn-light
  • btn-link
  • btn-lg:大按钮
  • btn-sm:小按钮

btn-outline-*:QPushButton外边框类按钮样式

  • btn-outline-primary
  • btn-outline-secondary
  • btn-outline-success
  • btn-outline-info
  • btn-outline-warning
  • btn-outline-danger
  • btn-outline-dark
  • btn-outline-light

select-*:QComboBox的样式

  • select-primary
  • select-secondary
  • select-info
  • select-success
  • select-warning
  • select-danger
  • select-dark
  • select-light
MIT License Copyright (c) 2019 执阙 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Qt widget皮肤库 展开 收起
C++
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C++
1
https://gitee.com/libaineu2004/hello.git
git@gitee.com:libaineu2004/hello.git
libaineu2004
hello
QtHello
master

搜索帮助