Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否有办法修改按钮后面的面板?我需要改变颜色。还有没有办法删除完成页面上的取消按钮?
删除取消按钮是一种用户体验,不,您应该重新考虑它。如果您坚持做可能是错误的事情:
wizard->setOption(QWizard::NoCancelButton);
您可以从 的重新实现中调用它QWizardPage::initializePage,这样它将在显示页面时删除按钮。
QWizardPage::initializePage
您可以使用样式表来自定义面板的外观。您也可以手动更改其调色板。