简 述: QFileSystemModel是可用于访问本机系统的文件系统数据模型;其的属性和功能的使用介绍;然后写了一个例子,用来实现和验证它的功能的一些属性和功能的用法。这里主要是数据的读取部分是使用到了QFileSystemModel类,然后分别使用QTreeViewQListViewColumnViewQTableView这四种视图控件来显示。

简 述:Qt Creator里面,默认打开一个项目文件,点开一个*.cpp文件里面,是很容易在右侧看到成片的黄色警告⚠️或者红颜色的error提示, 总是让看的人比较恐慌,然后在此文章中,给出如何关闭这个黄色、红色警告的的方法

简 述: 按照官网安装hexo的教程命令;执行命令npm install -g hexo-cli时候, 报错如下的解决方法

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/hexo-cli
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/hexo-cli/node_modules/chokidar
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib/node_modules/hexo-cli
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/hexo-cli'
npm ERR!  [Error: EACCES: permission denied, access '/usr/local/lib/node_modules/hexo-cli'] {
npm ERR!   stack: "Error: EACCES: permission denied, access '/usr/local/lib/node_modules/hexo-cli'",
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules/hexo-cli'
npm ERR! }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/yuanyi/.npm/_logs/2019-10-30T11_43_55_100Z-debug.log