![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Qt
lishengyaupc
这个作者很懒,什么都没留下…
展开
-
Program Files (x86)\360_SOFT\sogoupinyin\7.0.0.9505\程序异常终止
网上出问题,解决方法:使用了没有初始化的指针导致的;使用声明的对象时,没有使用new对对象进行实例化;栈溢出 空指针/野指针;错误排除:1.QPointer<QPlainTextEdit> 两个指针,指向了一个pEdit地址,FindDialog与replaceDialog,构造函数的参数,改正之后,问题依就存在。2.在initStatusBar()函数中,...原创 2019-05-21 10:51:36 · 1191 阅读 · 0 评论 -
Qt模型视图-QFileSystemModel-QTreeView
QTreeView类中成员函数setRootIndex(), void QTreeView::setRootIndex ( constQModelIndex&index)[virtual]功能为:Sets the root item to the item at the givenindex.若不使用该函数,显示出硬盘目录,使用之后,显示出当前文件目录。为什么呢??...原创 2019-05-30 22:07:12 · 411 阅读 · 0 评论 -
QTabWidget
报错:ASSERT failure in QVector<T>::operator[]: "index out of range", file d:\QT\qtwin-4.7.4\include/QtCore/../../src/corelib/tools/qvector.h, line 347Invalid parameter passed to C runtime func...原创 2019-05-28 14:07:29 · 846 阅读 · 0 评论 -
Qt 字符串类与容器类
https://www.cnblogs.com/jingliming/p/4965199.html一篇博客,挺好的。原创 2019-08-21 16:35:43 · 287 阅读 · 0 评论 -
外传篇8-文本协议的网络应用-记录
文本协议的程序在TestMessage类中1、使用QByteArray封装协议 类型、长度 ==> ASCII码,4字节 数据 ==> UTF-8编码 //QString类型,转为const char* 类型 ba.append(type.toStdString().c_str(), 4); ASCII码,4字节 ba.app...原创 2019-08-21 17:18:52 · 211 阅读 · 0 评论