深入探索Qt开发:多视角应用与Qt Quick
1. Qt多视角应用开发
void MainController::createActions()
{
mBackAction = new WebActionProxy( this );
connect(mBackAction, SIGNAL(triggered()),
this, SLOT(handleItemClosed()));
mShowListAction = new QAction(tr("Show List"), this);
connect(mShowListAction, SIGNAL(triggered()),
this, SLOT(handleShowList()));
mShowMapAction = new QAction(tr("Show Map"), this);
connect(mShowMapAction, SIGNAL(triggered()),
this, SLOT(handleShowMap()));
// Add to the options menu
mMainWindow->menuBar()->addAction(mShowListAction);
mMainWindow->me