会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
nanqiang
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
29
下一页
2019年12月26日
ffmpeg 命令行改变视频分辨率
摘要: 视频:ffmpeg -i input.avi -vf scale=320:240 output.avi 图片: ffmpeg -i input.jpg -vf scale=320:240 output_320x240.png
阅读全文
posted @ 2019-12-26 17:24 cicero
阅读(4817)
评论(0)
推荐(0)
2019年12月24日
qt5 使用数据库
摘要: #include <QApplication> //添加头文件 #include <qdebug.h> #include <QSqlDatabase> #include <QSqlError> #include <QSqlQuery> int main(int argc, char *argv[]) { QApplication a(argc, argv); //建立并打开数据库 QSqlData
阅读全文
posted @ 2019-12-24 10:06 cicero
阅读(1088)
评论(0)
推荐(0)
2019年12月17日
判断字符串是否是IP地址
摘要: #include <stdio.h>#include <string.h> bool isIP(const char* str); int main(){ char str[] = "111.111.111.21"; char str2[] = "a.111.111.111"; char str3[
阅读全文
posted @ 2019-12-17 11:18 cicero
阅读(1774)
评论(0)
推荐(0)
2019年12月3日
c++ 智能指针的使用
摘要: https://www.cnblogs.com/TenosDoIt/p/3456704.html
阅读全文
posted @ 2019-12-03 09:04 cicero
阅读(150)
评论(0)
推荐(0)
2019年11月28日
QPainter 提高绘制效率的方法
摘要: 原文: https://my.oschina.net/u/3919756/blog/1944747 如果我们用painter一个一个的绘制直线,圆等在控件上,绘制效率会不高。为了提高效率,我们可以设置一个画布pixmap,将所有的基础图形画布上,然后把画布画在控件上。
阅读全文
posted @ 2019-11-28 15:59 cicero
阅读(1581)
评论(0)
推荐(0)
c++ 类设计注意事项
摘要: https://blog.csdn.net/jonathan321/article/details/78106101
阅读全文
posted @ 2019-11-28 13:18 cicero
阅读(157)
评论(0)
推荐(0)
2019年11月21日
QCheckBox 使用本地图片的QSS样式
摘要: setStyleSheet 为以下字符串,选中,未选中,有焦点,无焦点时显示不一样的图片
阅读全文
posted @ 2019-11-21 13:39 cicero
阅读(2359)
评论(0)
推荐(0)
2019年10月31日
c++ 构造函数执行顺序
摘要: 如果成员变量在初始化列表中, 就会执行该变量类型的拷贝构造函数. 如果成员变量没有在初始化列表中, 就会执行该变量类型的缺省构造函数.
阅读全文
posted @ 2019-10-31 15:54 cicero
阅读(490)
评论(0)
推荐(0)
2019年10月24日
QSlider 样式
摘要: https://doc.qt.io/archives/qt-4.8/stylesheet-examples.html //下面是设置垂直滚动条的样例 QString strStyle = QString(" \ //设置整体的颜色 QSlider\ {\ background-color: %2;\
阅读全文
posted @ 2019-10-24 10:10 cicero
阅读(1897)
评论(0)
推荐(0)
2019年10月17日
git 命令
摘要: 1.先有本地库,后有远程库的时候,如何关联远程库: 要关联一个远程库,使用命令git remote add origin git@server-name:path/repo-name.git; 关联后, git pull origin master 拉取远程仓库并合并到本地仓库 使用命令git pu
阅读全文
posted @ 2019-10-17 11:29 cicero
阅读(120)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
29
下一页
公告