C++/Qt
个人云笔记
WeridPi
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
QPropertyAnimation
QPropertyAnimation官方API传送门用作提示界面,自动消失,自动半透明 QPropertyAnimation *animation = new QPropertyAnimation(myWidget, "geometry"); animation->setDuration(10000); animation->setStartValue(QRect(0, 0, 100, 30)); animation->setEndValue(QRect(25原创 2020-05-20 12:22:24 · 541 阅读 · 0 评论 -
改变QLabel背景颜色
改变QLabel背景颜色方法一:使用Qt样式表,qss语法ui->label->setText(""); //清空字体ui->label->setStyleSheet("QLabel{background-color:rgb(200, 101, 102);}");//设置样式表原创 2020-05-20 12:21:58 · 3002 阅读 · 0 评论 -
QString::section
QString QString::section(QChar sep, int start, int end = -1, SectionFlags flags = SectionDefault) const三个参数,分割用的字符串,起始位置,终止位置。分割后的字符串按照0,1,2,3…的方式存储,-1代表倒数第一。翻译 2017-10-18 09:57:52 · 583 阅读 · 0 评论
分享