报错:

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,

QTabWidget

相关文章:

  • 2021-08-18
  • 2021-12-01
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2019-11-26
  • 2022-12-23
  • 2021-10-15
猜你喜欢
  • 2021-12-30
  • 2021-12-12
  • 2021-11-03
  • 2021-09-05
  • 2021-05-25
  • 2022-01-21
相关资源
相似解决方案