void TextEdit::on_action_Font_triggered()
{
if(activeChildWindow()==NULL)return;
bool ok;
QFont font = QFontDialog::getFont(&ok,activeChildWindow()->font(),this);
if(ok)
{
activeChildWindow()->setCurrentFont(font);//此处导致程序意外退出 debug知错误原因SIGSEGV Segmentation fault
}
}
作为一个菜鸟实纠结了一阵子了,烦请大家帮忙解决。