onvif折腾记

编译gSoap 没什么好说的,下载 ./configure make make install 生成onvif.h文件 首先还是要把\gsoap-2.8\gsoap\typemap.dat这个文件拷贝到自定义的目录,或在指令中指定绝对路径也行,然后 生成 onvif.h文件 wsdl2h -o onvif.h -c -s -t /home……


Warning: Illegal string offset 'index' in /www/wwwroot/justchen.com/wp-content/themes/9IPHP-master/index.php on line 97

kvm 黑群安装记录

关键点 1:convert synoboot.img to qcow2 qemu-img convert -f raw -O qcow2 synoboot.img synoboot-qcow2.img 2:网卡类型 E1000 3:apt-get install ovmf 4:确定网卡的MAC,synoboot.img里使用了固定的MAC……


Warning: Illegal string offset 'index' in /www/wwwroot/justchen.com/wp-content/themes/9IPHP-master/index.php on line 97

Warning: Illegal string offset 'index' in /www/wwwroot/justchen.com/wp-content/themes/9IPHP-master/index.php on line 97

Warning: Illegal string offset 'index' in /www/wwwroot/justchen.com/wp-content/themes/9IPHP-master/index.php on line 97

Warning: Illegal string offset 'index' in /www/wwwroot/justchen.com/wp-content/themes/9IPHP-master/index.php on line 97

QT QML一些技术积累

qml C++交互 QML中访问C++成员及函数. 很简单,只要C++类是继承QObject, 然后使用Q_PROPERTY与Q_INVOKABLE来定义函数,就可以直接在QML中调用.Q_PROPERTY与Q_INVOKABLE的用法在网上很多,并且简单,这里不详细描述. C++ 调用 QML函数 C++直接访问QML中变量及函数稍麻烦……


Warning: Illegal string offset 'index' in /www/wwwroot/justchen.com/wp-content/themes/9IPHP-master/index.php on line 97

c++成员函数指针问题

note 在C++中,定义普通函数指针与C没什么区别,如 int (*func)(int para); 但成员函数指针还需要类实例对象来参与调用. 其原因是因为类还需要类的实例化,然后才是成员函数地址. 所以类的成员函数指针实际上是类地址+成员函数的偏移地址. 不过类的静态函数的地址与C程序的全局函数没区别.


Warning: Illegal string offset 'index' in /www/wwwroot/justchen.com/wp-content/themes/9IPHP-master/index.php on line 97

qml Canvas绘制简单图形

简单图形 使用内置的Rectangle不透明,并且不能指定方向圆角.所以打算自已画框 简单矩形 Canvas{ id:pen x:0 y:0 width: 50 height: 50 visible: true onPaint: {//绘图事件的响应 var ctx = getContext(‘2d’); ctx.lineWidth = ……


Warning: Illegal string offset 'index' in /www/wwwroot/justchen.com/wp-content/themes/9IPHP-master/index.php on line 97

Warning: Illegal string offset 'index' in /www/wwwroot/justchen.com/wp-content/themes/9IPHP-master/index.php on line 97

QT json

先了解概念 使用{ … }可以叫做一个json对像,使用QJsonObject这个类来处理 使用[ … ]可以叫做一个json数组,使用QJsonArray这个类来处理 QJsonDocument 保存/初始化 json对像, QJsonValue 保存json项目值 解析json 假如有以下QByteArray字符串jsonst……


Warning: Illegal string offset 'index' in /www/wwwroot/justchen.com/wp-content/themes/9IPHP-master/index.php on line 97