07 2022 档案

摘要:// ui_frameless_dialog.h #pragma once #include <QWidget> #include <QMouseEvent> class FramelessDialog : public QWidget { Q_OBJECT public: FramelessDia 阅读全文
posted @ 2022-07-29 19:29 umichan 阅读(161) 评论(0) 推荐(0) 编辑
摘要:// thread_pool.h #pragma once #include <vector> #include <deque> #include <thread> #include <functional> #include <condition_variable> class ThreadPoo 阅读全文
posted @ 2022-07-29 19:21 umichan 阅读(528) 评论(0) 推荐(0) 编辑
摘要:#include <yaml-cpp/yaml.h> #include <string> using namespace std; int main() { std::string file_path; // 读取yaml文件 YAML::Node yaml_node = YAML::LoadFil 阅读全文
posted @ 2022-07-29 18:44 umichan 阅读(4232) 评论(2) 推荐(2) 编辑
摘要:CMake文件 在vscode工作目录下创建CMakeLists.txt cmake_minimum_required(VERSION 3.5) project(test) set(CMAKE_CXX_STANDARD 11) add_executable(test test.cpp) C++文件 阅读全文
posted @ 2022-07-27 15:14 umichan 阅读(673) 评论(0) 推荐(0) 编辑
摘要:编写proto文件并生成4个C++文件 首先编写proto文件,命名为test.proto,保存在工作目录下 syntax = "proto3"; package test.idl; message Student{ int32 id=1; string name=2; int32 score=3; 阅读全文
posted @ 2022-07-21 14:38 umichan 阅读(1304) 评论(0) 推荐(0) 编辑
摘要:#include <Poco/DigestEngine.h> #include <Poco/DigestStream.h> #include <Poco/MD5Engine.h> #include <Poco/StreamCopier.h> #include <fstream> #include < 阅读全文
posted @ 2022-07-20 16:38 umichan 阅读(311) 评论(0) 推荐(0) 编辑
摘要:#include <Poco/Net/HTTPClientSession.h> #include <Poco/Net/HTTPRequest.h> #include <Poco/Net/HTTPResponse.h> #include <Poco/StreamCopier.h> #include < 阅读全文
posted @ 2022-07-19 19:50 umichan 阅读(895) 评论(0) 推荐(0) 编辑
摘要:使用FramelessWindowHint设置之后Widget不能移动和拉伸,需要自己实现 setWindowFlags(Qt::FramelessWindowHint); .h文件 #pragma once #include <QWidget> class FramelessWidget : pu 阅读全文
posted @ 2022-07-07 14:53 umichan 阅读(1183) 评论(0) 推荐(1) 编辑
摘要:sudo service cups-browsed stop 阅读全文
posted @ 2022-07-07 13:50 umichan 阅读(108) 评论(0) 推荐(0) 编辑
摘要:一般而言,有很多的.so文件会存放在/usr/local/lib这个目录底下 首先需要打开/etc/ld.so.conf文件 vim /etc/ld.so.conf 然后在文件中中加入一行 /usr/local/lib 保存之后,运行 sudo /sbin/ldconfig -v 更新配置后,编译时 阅读全文
posted @ 2022-07-07 13:22 umichan 阅读(763) 评论(0) 推荐(0) 编辑
摘要:查看所有docker容器 docker ps -a 查看所有docker镜像 docker images 停止指定docker容器 容器外部 docker stop <容器 ID> or <容器名>:<版本> 容器内部 输入exit(退出后容器销毁) Ctrl+D(退出后容器销毁) 先Ctrl+P, 阅读全文
posted @ 2022-07-07 11:25 umichan 阅读(40) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示