sysfrom PySide6.QtWidgets import QApplication, QLabel, QMainWindow, QPushButton, QVBoxLayout, QWidget, QWizard content) self.v_layout.addWidget(label) self.setLayout(self.v_layout)class MainWizard(QWizard __init__() self.setWindowTitle('QWizard示例') self.addPage(MyWizardPage('1. __init__() self.setWindowTitle('QWizard示例') self.setCentralWidget(MyWizardPage('1.
利用QWizard可方便快捷的创建向导(Mac上称作助手),向导常用于帮助用户完成复杂或是很少用到的操作。 ?
WizardPage *wizard = new WizardPage(this); wizard->exec(); delete wizard; } class WizardPage : public QWizard