上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 31 下一页
摘要: 1、https://blog.csdn.net/weixin_41157654/article/details/80820520 最近跟着前辈们打打下手,顺便研究研究代码,以前没怎么用过QT和C++语言,这次跟着前辈好好学习。在研究代码时看到这样的形式,很怪异,就在网上找了一下,发现有个解释的就转载 阅读全文
posted @ 2019-05-09 16:37 kuaqi 阅读(4320) 评论(0) 推荐(3)
摘要: qApp->sendEvent( ui->spinBox, &myEvent); 阅读全文
posted @ 2019-05-08 11:43 kuaqi 阅读(540) 评论(0) 推荐(0)
摘要: "^[jan|feb|mar]1"与"jan1"匹配会失败;但是"^(jan|feb|mar)1"与"jan1"匹配成功; 阅读全文
posted @ 2019-05-07 10:15 kuaqi 阅读(97) 评论(0) 推荐(0)
摘要: at( )获取一个指定位置的字符的速度比 " [ ] "快的多,因为它不会引起深复制! 阅读全文
posted @ 2019-05-06 13:35 kuaqi 阅读(150) 评论(0) 推荐(0)
摘要: QString pattern = "\\bchar\\b"; \\要匹配的字符 QRegExp expression(pattern); \\ 创建正则表达式 int index = text.indexOf(expression); \\ indexOf()字符串匹配 阅读全文
posted @ 2019-05-04 16:28 kuaqi 阅读(775) 评论(0) 推荐(0)
摘要: 1、方法一 在A类中声明private:B类的ptr_B指针,然后其他函数可以ptr_B=new B;接着就可以ptr_B->B的fun了; 阅读全文
posted @ 2019-04-24 21:55 kuaqi 阅读(823) 评论(0) 推荐(0)
摘要: class HelloWorld{ setupUi(x){}; } HelloWorld *ui; ui=new HelloWorld; ui->setup(x); \\对于非静态类成员函数,只有类对象可以调用其函数;这里也只有类对象的指针可以调用类函数; 阅读全文
posted @ 2019-04-24 21:42 kuaqi 阅读(3409) 评论(0) 推荐(1)
摘要: 1、格式 basic_string& operator=( const basic_string& str );\\赋值操作符 basic_string& operator=(basic_string&& str);\\移动操作符 阅读全文
posted @ 2019-04-19 23:35 kuaqi 阅读(127) 评论(0) 推荐(0)
摘要: 1、格式 1)Foo(const Foo& other) \\复制构造函数 \\左值赋值 2)Foo(Foo&& other) \\移动构造函数 \\右值赋值 3)explicit Foo(size_type count) \\禁止隐性转换 2、参数与返回值 没理解??? 2、合成拷贝构造函数 编译 阅读全文
posted @ 2019-04-18 23:49 kuaqi 阅读(1740) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/hnrainll/archive/2011/04/29/2032868.html 已知strcpy函数的原型是 char *strcpy(char *strDest, const char *strSrc); 其中strDest是目的字符串,strSrc 阅读全文
posted @ 2019-04-17 23:29 kuaqi 阅读(239) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 31 下一页