2018年5月18日

摘要: 1.ffmpeg的DEV版本为开发版,里面包含了库文件和头文件。shared版本里面包含*.exe,在电脑环境变量中增加其bin所在路径。 F:\工作目录\人脸识别相关\ffmpeg_package\ffmpeg-3.4.2-win32-shared\ffmpeg-3.4.2-win32-share 阅读全文

posted @ 2018-05-18 09:41 yacbo 阅读(1108) 评论(0) 推荐(0) 编辑


2018年5月17日

摘要: 1.重写paintEvent()事件。在该事件中用画笔QPainter的方式画整个背景。 2.用调色板QPalette。 步骤: 1定义一个QPalette对象 2设置QPalette对象的背景属性(颜色或图片) 3设置 autoFillBackground属性为真 4最后设置QWidget对象的P 阅读全文

posted @ 2018-05-17 11:25 yacbo 阅读(435) 评论(0) 推荐(0) 编辑

摘要: 1.标题栏图标、标题、最小化、最大化、关闭,标题栏背景(纯色、图片)设置。 2.layout的space和margin的设置。 3.鼠标双击标题栏最大化、最小化切换。 4.任意拖拉界面 阅读全文

posted @ 2018-05-17 09:38 yacbo 阅读(320) 评论(0) 推荐(0) 编辑


2018年5月16日

摘要: 1. QHBoxLayout, QVBoxLayout实现 https://blog.csdn.net/qq_19004627/article/details/79751427 阅读全文

posted @ 2018-05-16 19:08 yacbo 阅读(790) 评论(0) 推荐(0) 编辑


2018年5月10日

摘要: 1.在Qt Designer 中添加样式 2.在代码中添加样式 // 对单个控件; ui->pushButton->setStyleSheet("QPushButton{border-radius:5px;background:rgb(150, 190, 60);color:red;font-siz 阅读全文

posted @ 2018-05-10 20:16 yacbo 阅读(256) 评论(0) 推荐(0) 编辑


2018年4月27日

摘要: 1, 2, 3 阅读全文

posted @ 2018-04-27 14:58 yacbo 阅读(155) 评论(0) 推荐(0) 编辑


2018年4月23日

摘要: bool srvPortIsUsed(int devPort) { string str_dev = std::to_string(devPort)+".txt"; std::strstream srm; //srm netstat.txt"; srm " << str_dev; system(srm.str()); //std::ifstream in("netstat.txt"); std:... 阅读全文

posted @ 2018-04-23 10:49 yacbo 阅读(248) 评论(0) 推荐(0) 编辑


2018年4月15日

摘要: 字符串切割的使用频率还是挺高的,string本身没有提供切割的方法,但可以使用stl提供的封装进行实现或者通过c函数strtok()函数实现。 1、通过stl实现 涉及到string类的两个函数find和substr: 1、find函数 原型:size_t find ( const string& 阅读全文

posted @ 2018-04-15 19:08 yacbo 阅读(739) 评论(0) 推荐(0) 编辑


2018年4月11日

摘要: int Oper(int (*MyPointerFuncAdd)(int a,int b)) { int c=MyPointerFuncAdd(5,6);//间接调用 } int Oper(int (*MyPointerFuncAdd)(int a,int b)) { int c=MyPointer 阅读全文

posted @ 2018-04-11 16:48 yacbo 阅读(154) 评论(0) 推荐(0) 编辑


2018年4月4日

摘要: 1.属性->C++编译器->包含目录 (填写ffmpeg头文件所在的路径,本demo为本地的路径是include) 2.属性->链接器->其他库目录 (填写ffmpeg库所在的路径,本demo为本地的路径是lib) 3.属性->链接器->库 添加动态文件 /usr/local/lib/libavco 阅读全文

posted @ 2018-04-04 14:05 yacbo 阅读(143) 评论(0) 推荐(0) 编辑


Copyright © 2024 yacbo
Powered by .NET 8.0 on Kubernetes