qt c++ 内存错误 关于指针调用问题
QT C++ 中使用信号发送时报错 Process finished with exit code -1073741819 (0xC0000005)
maintest.cpp中
connect(this, SIGNAL(post_choose_info(int, int)), topicList, SLOT(get_choose_info(int, int)));
emit post_choose_info(pos, index);
topicView.cpp中
void topicListView::get_choose_info(int pos, int index) {
topicListUi->topicListTable->setCurrentIndex(pos);
choose->show_choose_data(index + 1);
}
一般情况下没有问题,有时候突然就程序直接奔溃,Process finished with exit code -1073741819 (0xC0000005),在网上找了说是指针的问题,但是自己看了下不存在没有空指针调用的情况,求指导!