- 博客(5)
- 收藏
- 关注
原创 QWidget从左至右设渐变色背景
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 #3b68be, stop:1 #1a3460);参考博文:https://www.cnblogs.com/ybqjymy/p/13571546.html
2021-03-01 16:41:59
1303
原创 Qt让弹出的窗口在指定界面居中显示
m_pCalendarBeginDlg->move(this->geometry().center() - m_pCalendarBeginDlg->rect().center());m_pCalendarBeginDlg弹出的窗体,this指定的界面
2021-01-25 20:21:27
1447
1
原创 Qt QCustomPlot样式设置
QCustomPlot *pCustomPlot = new QCustomPlot;//设置画布背景色pCustomPlot->setBackground(QColor(24, 47, 81));//设置坐标名称颜色pCustomPlot->xAxis->setTickLabelColor(QColor(146, 168, 204));//设置x坐标名称颜色pCustomPlot->yAxis->setTickLabelColor(QColor(146, 168
2021-01-08 17:10:47
1913
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人