I have a QStackedWidget
that contains 2 layers of widgets (widget inside another widget). The final widget contains a multiplicity of buttons. How can I change the index of that QStackedWidget
when I press one of those buttons?
如果我的问题正确,答案很简单——你试过了吗:
ui->stackedWidget->setCurrentIndex(INDEX);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.