上一页 1 ··· 107 108 109 110 111 112 113 114 115 ··· 136 下一页
摘要: 通过metamethod调用函数普通函数,发现indexOfMethod总是返回-1,查看文档,发现下面: Q_INVOKABLE Apply this macro to definitions of member functions to allow them to be invoked via the meta-object system. The macro is written befor... 阅读全文
posted @ 2011-07-04 16:36 katago 阅读(316) 评论(0) 推荐(0)
摘要: QList<QCheckBox *> widgets = findChildren<QCheckBox *>(); foreach(QCheckBox* checkbox, widgets) { connect(checkbox, SIGNAL(stateChanged(int)), this, SLOT(slotEnableSaveButton())); } 阅读全文
posted @ 2011-07-04 12:03 katago 阅读(426) 评论(0) 推荐(0)
摘要: Under what circumstances do I not need to create aQApplication/QCoreApplication?https://snapbrowse.com/browse.php/Oi8vbGlzdHMudHJvbGx0ZWNoLmNvbS9xdC1pbnRlcmVzdC8yMDA2LTAyL3RocmVhZDAxNTQwLTAuaHRtbA_3D_... 阅读全文
posted @ 2011-07-03 12:08 katago 阅读(2496) 评论(0) 推荐(0)
摘要: Linux 高精確的時序(sleep, usleep,nanosleep) 2009-04-16 11:36:48| 分类: Linux | 标签:无 |字号订阅 首先, 我会说不保证你在使用者模式 (user-mode) 中执行的行程 (process) 能够精确地控制时序因为 Linux 是个多工的作业环境. 你在执行中的行程 (process) 随时会因为各种原因被暂停大约 10 毫秒到数... 阅读全文
posted @ 2011-07-03 11:40 katago 阅读(1293) 评论(0) 推荐(0)
摘要: #!/bin/sh echo "init..." mount -t proc proc /proc mount -t sysfs sysfs /sys mdev -s newroot=`findfs LABEL=ROOT` cleanmntdir() { rm -rf /mnt/* } copyroot() { FILES=`ls /` for F in $FILES do [ $F !... 阅读全文
posted @ 2011-07-02 15:39 katago 阅读(331) 评论(0) 推荐(0)
摘要: ~ # switch_root BusyBox v1.18.3 (2011-02-23 16:15:41 CST) multi-call binary. Usage: switch_root [-c /dev/console] NEW_ROOT NEW_INIT [ARGS] Free initramfs and switch to another root fs: chroot to NEW_R... 阅读全文
posted @ 2011-07-02 15:38 katago 阅读(14098) 评论(0) 推荐(0)
摘要: http://lists.netfilter.org/pipermail/netfilter/2004-November/056913.html 阅读全文
posted @ 2011-07-01 21:02 katago 阅读(143) 评论(0) 推荐(0)
摘要: exec也是让script在同一个进程上执行,但是原有进程则被结束了 脚本内容: root@james-desktop:/opt/qt-everywhere/marvell/APP/applications/factory-roast# cat 1.sh #!/bin/sh A=B echo "PID for 1.sh :$$" export A echo "1.sh \$A is $A" ca... 阅读全文
posted @ 2011-07-01 20:16 katago 阅读(278) 评论(0) 推荐(0)
摘要: 1、中间库: 中间库都放在middlewares目录,include头文件相同,所以不需要特殊处理,只要特殊处理lib安装目录, 示例pro文件如下: TEMPLATE = lib TARGET = ime VERSION = 1.0.0 DEPENDPATH += . INCLUDEPATH += . CONFIG += staticlib inc.files = \ xinputmethod... 阅读全文
posted @ 2011-06-30 19:36 katago 阅读(1243) 评论(0) 推荐(0)
摘要: 发现一些linux文件系统没有正常工作,都是空的 在sata.sh中加了手动重新挂载: mount [OPTIONS] [-o OPTS] DEVICE NODE mount -t usbfs none /proc/bus/usb/ mount -t sysfs sysfs /sys mount –t devpts none /dev/pts 注意:usbdevfs 已经过时,用usbfs代替 阅读全文
posted @ 2011-06-30 12:09 katago 阅读(280) 评论(0) 推荐(0)
上一页 1 ··· 107 108 109 110 111 112 113 114 115 ··· 136 下一页