报错:
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 347
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
QTabWidget一次只能插入一个组件,插入文本编辑器时,设置本编辑器的Parent,这条代码位置有要求,在insertTab()函数之前。若将注释掉的代码段没有注释,输出m_tabWidget.currentIndex() 为 -1,