添加按钮void QTableWidget::setCellWidget ( int row, int column, QWidget * widget )widget可以是自己定义的按钮class MyPushButton : public QPushButton{ Q_OBJECTpubl...
分类:
其他好文 时间:
2014-08-06 22:43:22
阅读次数:
362
MySQL 加入?列,改动列,删除列ALTER TABLE:加入?,改动,删除表的列,约束等表的定义。查看列:desc 表名;改动表名:alter table t_book rename to bbb; 加入?列:alter table 表名 add column 列名 varchar(30); 删...
分类:
数据库 时间:
2014-08-06 21:50:12
阅读次数:
291
上一节售票系统中我们发现,打印出了错票,0,-1,出现了多线程安全问题。我们分析为什么会发生多线程安全问题?看下面线程的主要代码:@Override public void run() { // TODO Auto-generated method stub ...
分类:
编程语言 时间:
2014-08-06 21:47:52
阅读次数:
301
asp.net Repeater控件分页时,序号列翻页重新从1开始计数问题的解决思路及方法: 一般情况下,使用 给序号列来自增。 但是在有分页情况下,这样做的结果就是在下一页的时候重新从一开始。 网上找到的资料是有的解决方案是绑定,还有的是在后台另构造序号列column来解决,都挺麻烦。最后...
分类:
Web程序 时间:
2014-08-06 17:23:01
阅读次数:
227
select current_timestamp; //select current_date; //selectcurrent_time; //select to_timestamp(some_char_column, 'yyyymmdd') from some_table; //CHAR...
分类:
数据库 时间:
2014-08-06 01:41:40
阅读次数:
227
起初没400 Bad request
过一段时间就产生了
[pid: 14558|app: 0|req: 23/23] 123.127.3.37 () {38 vars in 653 bytes} [Mon Aug 4 21:29:55 2014] GET / => generated 0 bytes in 6 msecs (HTTP/1.1 500) 4 headers in 147 by...
分类:
其他好文 时间:
2014-08-05 00:44:10
阅读次数:
724
1、new Thread的弊端 执行一个异步任务你还只是如下new Thread吗? new Thread(new Runnable() { @Override public void run() { // TODO Auto-generated method stub }}).start...
分类:
移动开发 时间:
2014-08-04 20:47:47
阅读次数:
282
1、从官网下载源码
2、编辑一个config.h:
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.in by autoheader. */
/* Define if you want to use libfaad together wi...
分类:
移动开发 时间:
2014-08-03 18:09:55
阅读次数:
414
1.内连接(自然连接)2.外连接(1)左外连接(左边的表不加限制)(2)右外连接(右边的表不加限制)(3)全外连接(左右两表都不加限制)3.自连接(同一张表内的连接)SQL的标准语法:select table1.column,table2.columnfrom table1 [inner | lef...
分类:
数据库 时间:
2014-08-03 12:36:45
阅读次数:
326
题目:Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you use extra s....
分类:
编程语言 时间:
2014-08-03 07:49:44
阅读次数:
193