项目中需要打开文件对话框,就查了一下,不得不说Qt的帮助文档做的真好,非常详细。要实现这个功能有两种方式,使用QFileDialog的静态方法,实例化QFileDialog对象。基本算是照抄帮助文档了。下面是自己的代码。 1 // 单击文件按钮 2 void FirstDialog::on_push...
分类:
其他好文 时间:
2014-08-06 14:14:01
阅读次数:
199
各种蓝牙协议的全称:
OPP:对象存储规范(Object Push Profile),最为常见的,文件的传输都是使用此协议。
HFP:(Hands-free Profile),让蓝牙设备可以控制电话,如接听、挂断、拒接、语音拨号等,拒接、语音拨号要视蓝牙耳机及电话是否支持。
HDP: HDP (Health Device Profile) 蓝牙医疗设备模式 可以创建支...
分类:
移动开发 时间:
2014-08-06 11:54:21
阅读次数:
355
1.android用户界面之WebView教程实例汇总http://www.apkbus.com/android-51718-1-1.html2.android用户界面之Notification教程实例汇总http://www.apkbus.com/android-51696-1-1.html3.a...
分类:
移动开发 时间:
2014-08-06 10:25:31
阅读次数:
253
epoll - I/O event notification facility在linux的网络编程中,很长的时间都在使用select来做事件触发。在linux新的内核中,有了一种替换它的机制,就是epoll。相比于select,epoll最大的好处在于它不会随着监听fd数目的增长而降低效率。因为在...
分类:
其他好文 时间:
2014-08-06 08:22:31
阅读次数:
297
actionseques[‘segwei]联线:1)modal:slideascenefromthebottomtothetop,coveredontheparentscene.2)push:slidefromrighttoleft.3)custom
分类:
移动开发 时间:
2014-08-05 23:06:21
阅读次数:
235
新建一个基于对话框的工程,添加一个按钮,修改按钮ID,这里为ID_BTN_OPENFILE,为按钮添加消息响应事件,这里我打开文件保存对话框:
void CAccelDlg::OnBtnOpenfile()
{
// TODO: Add your control notification handler code here
CFileDialog dlg (TRUE);
dlg.DoMo...
分类:
其他好文 时间:
2014-08-05 22:44:20
阅读次数:
234
题目:设计包含min函数的栈。
定义栈的数据结构,要求添加一个min函数,能够得到栈的最小元素。
要求函数min、push以及pop的时间复杂度都是O(1)。
文件分布:
头文件和main文件
头文件:代码
#include
#include
using namespace std;
template
class stackWithMin{
private :
...
分类:
其他好文 时间:
2014-08-05 22:36:41
阅读次数:
304
今天学的hash。说实话还没怎么搞懂,明天有时间把知识点总结写了,今天就小小的写个结题报告吧!题意: 在n (n.(2)创建vector对象,vector vec;(3)尾部插入数字:vec.push_back(a);(4)使用下标访问元素,cout::iterator it;for(it=vec....
分类:
其他好文 时间:
2014-08-05 22:26:30
阅读次数:
297
public class NotificationTest extends Activity
{
static final int NOTIFICATION_ID = 0x1123;
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setC...
分类:
移动开发 时间:
2014-08-05 19:23:00
阅读次数:
202
view code//hdu 3987
#include #include #include #include #include using namespace std;
typedef long long ll;
const ll INF = 1LLq; q.push(s); d[s] = 0; ...
分类:
其他好文 时间:
2014-08-05 19:00:22
阅读次数:
243