[cpp] view plain copy [cpp] view plain copy [cpp] view plain copy /* 方法2 */ /* * 获取文件md5值 */ QByteArray MainWindow::getFileMd5(QString filePath) { QFi Read More
posted @ 2016-06-20 05:08
findumars
Views(2554)
Comments(1)
Diggs(0)
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(22184)
Comments(1)
Diggs(0)
Qt的QString类提供了很方便的对字符串操作的接口。 例: 2,从字符串里查找相同的某个字符串str。 例如: 3指定位置插入字符串 例如: 3,判断字符串是否为空。 如: 4.判断字符串是否存在。 例如: 5,从左向右截取字符串 例如: 6,从中间截取字符串。 例如: 7,删除字符串中间某个字 Read More
posted @ 2016-06-20 05:06
findumars
Views(709)
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(2523)
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(3240)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号