private:
typedef void (MainWindow::*pfunc)();
QHash<QString,pfunc> func_map_enter;
void MainWindow::init_qmap(void)
{
func_map_enter.insert("page_nmes_treat",&MainWindow::quick_nmes_prepare);
}
标签:容器,qt,map,void,func,enter,函数指针,MainWindow From: https://www.cnblogs.com/clive-ccc/p/16779499.html