上一页 1 2 3 4 5 6 7 8 9 ··· 31 下一页
摘要: QTreewidget::item { height: 30px; width:30px } 阅读全文
posted @ 2024-02-18 14:46 雾枫 阅读(143) 评论(0) 推荐(0) 编辑
摘要: QScrollArea#MyqtWidgetStyle_m_scrollArea { background-color: rgb(189,97,99); max-width :190px; /* 最大宽度 */ min-width :190px; /* 最大宽度 */ } QWidget#MyqtW 阅读全文
posted @ 2024-02-13 22:18 雾枫 阅读(74) 评论(0) 推荐(0) 编辑
摘要: // 设置自动调整大小 m_scrollarea->setWidgetResizable(true); 阅读全文
posted @ 2024-02-13 19:40 雾枫 阅读(49) 评论(0) 推荐(0) 编辑
摘要: void MainWindow::paintEvent(QPaintEvent *event) { QPainter painter(this); painter.setPen(QPen(Qt::darkYellow,2)); // 设置当前画笔的颜色,和画笔大小,单位像素 QRect rect = 阅读全文
posted @ 2024-02-13 16:40 雾枫 阅读(41) 评论(0) 推荐(0) 编辑
摘要: QLabel#m_title { color:white; font-family: "New Century Schoolbook"; /* 设置字体 */ font-size: 40px ; /* 设置字体大小 */ font-style: italic; /* 设置字体倾斜 */ font-w 阅读全文
posted @ 2024-02-12 20:08 雾枫 阅读(284) 评论(0) 推荐(0) 编辑
摘要: QLabel#m_icon { border-image: url(/RedWetPlace/:/res/haiyang.png); /* 图片路径 */ min-width : 40px; /* 最小宽度 */ min-height : 40px; /* 最小高度 */ max-width : 40px; /* 最大宽度 阅读全文
posted @ 2024-02-12 19:56 雾枫 阅读(480) 评论(0) 推荐(0) 编辑
摘要: // 头文件 #ifndef TITLEBAR_H #define TITLEBAR_H #include <QWidget> #include <QPoint> //坐标点 #include <QMouseEvent> //鼠标事件 class TitleBar : public QWidget 阅读全文
posted @ 2024-02-11 22:59 雾枫 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 1、创建一个QWidget 对象 2、在QWidget对象内添加控件进行布局 3、给QScrollArea调用setwidget函数,设置QWidget对象。 阅读全文
posted @ 2024-01-29 11:17 雾枫 阅读(59) 评论(0) 推荐(0) 编辑
摘要: MyOpenglWidget::MyOpenglWidget(QWidget *parent) : QOpenGLWidget{parent} { auto &mysignal = MySignal::instance(); // 绘制和清空 connect(&mysignal,&MySignal: 阅读全文
posted @ 2024-01-14 19:36 雾枫 阅读(112) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 31 下一页