摘要: C++11特性:auto关键字 前言 本文的内容已经不新鲜了。关于auto,翻来覆去被人知道的都是这些东西,本文并没有提出新颖的auto用法。本人原是痛恨博客一篇篇都是copy而来缺乏新意的探索,当然,本文不是copy而来,但发布这样一篇大家皆知的文章心里甚是惶恐。本文对auto的内容加以整理,权当 阅读全文
posted @ 2022-05-16 18:19 不是一般的水 阅读(266) 评论(0) 推荐(0)
摘要: [virtual] qintptr QAbstractSocket::socketDescriptor()const 如果QAbstractSocket object是有用的返回本地socket descriptor,如果不能用返回-1; 如果socket用QNetworkProxy,本地socke 阅读全文
posted @ 2022-03-30 11:19 不是一般的水 阅读(161) 评论(0) 推荐(0)
摘要: windowsflags is either a type or a hints; type:widgets windows dialog and etc hints: used to customize the performance of top-level windows 阅读全文
posted @ 2022-03-24 22:31 不是一般的水 阅读(50) 评论(0) 推荐(0)
摘要: &&是与,因为带钩子所以连在一起,必须都是true才是true ||是或,因为是平行的所以,有一个true就是true 阅读全文
posted @ 2022-03-14 15:10 不是一般的水 阅读(52) 评论(0) 推荐(0)
摘要: setModel()来实现view 的model显示 modelindex 是用来在model里面定位数据的,他是QAbstractItemModel的子类 通过item view,delegates,selection models,在model里来定位一个item。 每个index由三部分组成: 阅读全文
posted @ 2022-03-11 23:39 不是一般的水 阅读(4283) 评论(0) 推荐(0)
摘要: ctrl+shift+r, 替换所有变量 F4 头文件与源文件切换 shift+F2 声明与定义之间切换 ctrl+i 代码格式化 ctrl+space 代码补全 alt+0 侧面关闭 alt+1~9.... 阅读全文
posted @ 2022-03-11 16:35 不是一般的水 阅读(22) 评论(0) 推荐(0)