上一页 1 2 3 4 5 6 7 8 ··· 31 下一页
摘要: 效果: main.cpp #include <iostream> #include <glad/glad.h> #include <glfw3.h> using namespace std; // 回调函数,每当窗口改变大小,视口大小也跟随改变 void framebuffer_size_callb 阅读全文
posted @ 2024-04-04 11:18 雾枫 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 一、编译GLFW 生成 glfw3.lib 1、glfw3.lib通过cmake gui 生成vs工程 进行编译的 2、libglfw3.a通过Qt 打开cmakelists.txt 编译生成的 (使用minGW需要libglfw3.a) (使用vs或msvc需要glfw3.lib) 二、获取GLA 阅读全文
posted @ 2024-04-04 10:57 雾枫 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 一、标准库中的数值极限 #include <limits> auto max = numeric_limits< char> ::max(); 二、断言 #include <assert.h> assert((" 这里错误 ", 2 + 2 == 5)); 阅读全文
posted @ 2024-03-26 15:12 雾枫 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 原文地址 最关键的一步,要通过命令行打开安装软件 阅读全文
posted @ 2024-03-20 23:31 雾枫 阅读(8) 评论(0) 推荐(0) 编辑
摘要: vec.erase(remove(vec.begin(), vec.end(), 3), vec.end()); 阅读全文
posted @ 2024-03-01 09:46 雾枫 阅读(4) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <memory> using namespace std; struct ParenTask // 父亲 { string name{}; }; typedef shared_ptr<ParenTask> ParenTaskPtr; stru 阅读全文
posted @ 2024-02-22 23:04 雾枫 阅读(9) 评论(0) 推荐(0) 编辑
摘要: QTreewidget::item { height: 30px; width:30px } 阅读全文
posted @ 2024-02-18 14:46 雾枫 阅读(106) 评论(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 雾枫 阅读(59) 评论(0) 推荐(0) 编辑
摘要: // 设置自动调整大小 m_scrollarea->setWidgetResizable(true); 阅读全文
posted @ 2024-02-13 19:40 雾枫 阅读(38) 评论(0) 推荐(0) 编辑
摘要: void MainWindow::paintEvent(QPaintEvent *event) { QPainter painter(this); painter.setPen(QPen(Qt::darkYellow,2)); // 设置当前画笔的颜色,和画笔大小,单位像素 QRect rect = 阅读全文
posted @ 2024-02-13 16:40 雾枫 阅读(29) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 31 下一页