1、char * 与 const char *的转换 char *ch1="hello11";const char *ch2="hello22";ch2 = ch1;//不报错,但有警告ch1 = (char *)ch2; 2、char 与 QString的转换char 转换为 QString其实方 Read More
posted @ 2016-06-20 05:07
findumars
Views(22200)
Comments(1)
Diggs(0)
Qt的QString类提供了很方便的对字符串操作的接口。 例: 2,从字符串里查找相同的某个字符串str。 例如: 3指定位置插入字符串 例如: 3,判断字符串是否为空。 如: 4.判断字符串是否存在。 例如: 5,从左向右截取字符串 例如: 6,从中间截取字符串。 例如: 7,删除字符串中间某个字 Read More
posted @ 2016-06-20 05:06
findumars
Views(712)
Comments(0)
Diggs(0)
TreeWidget 与 TreeView 中实现右键菜单稍有不同, TreeView 中是靠信号与槽 connect(ui->treeView,SIGNAL(customContextMenuRequested(constQPoint&)), this,SLOT(onCustomContextMe Read More
posted @ 2016-06-20 05:00
findumars
Views(2535)
Comments(0)
Diggs(0)
ui->pushButtonhasFocus()->hasFocus(); ui->treeWidget->hasFocus(); ui->pushButtonhasFocus()->hasFocus(); ui->treeWidget->hasFocus(); http://blog.csdn.n Read More
posted @ 2016-06-20 04:58
findumars
Views(3248)
Comments(0)
Diggs(0)
转自:http://xiangjie88.iteye.com/blog/898417 sleep()//秒msleep()//毫秒usleep()//微秒以前为了模拟鼠标点击用过这些函数,可以让进程中断,今天发现我原来的做法其实不对.这组函数会将你当前的线程/进程变为“睡眠”状态。 这个“睡眠”是深 Read More
posted @ 2016-06-20 04:56
findumars
Views(7146)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号