左边搞一个QButtonGroup,connect(buttonGroup, SIGNAL(buttonClicked(int)), this, SIGNAL(buttonClicked(int)));
右边的窗体使用QStackedWidget,把要显示的widget添加到stacked widget里面
在底层widget连接信号:connect(leftWidget, SIGNAL(buttonClicked(int)), rightWidget, SLOT(setCurrentIndex(int)));
代码可能有误,思路大致如此