我想在我的向导中添加边框(例如“1px solid black”),但不知道怎么做? 这是向导类的构造函数:
{
// Remove original window frame.
this->setWindowFlags(Qt::FramelessWindowHint);
// Add new pages to wizard.
this->setPage(PageIntro, new WizardIntroPage(0));
this->setPage(PageNewDisk, new WizardCreateNewDiskPage(0));
...
this->setStartId(PageIntro);
this->setWizardStyle(QWizard::ModernStyle);
this->setFixedSize(550, 400);
}
我尝试在main函数中执行此操作:
Wizard* wizard = new Wizard();
wizard->setStyleSheet("border:1px solid black;");
但是返回,下一步,取消按钮失真。有人遇到过这样的问题吗?