动态页面安装程序示例
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>LicenseWidget</class> <widget class="QWidget" name="LicenseWidget"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>491</width> <height>190</height> </rect> </property> <property name="minimumSize"> <size> <width>491</width> <height>190</height> </size> </property> <property name="windowTitle"> <string>Form</string> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QLabel" name="label"> <property name="sizePolicy"> <sizepolicy hsizetype="MinimumExpanding" vsizetype="Minimum"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string>Please read the following license agreement. You must accept the terms contained in this agreement before continuing with the installation.</string> </property> <property name="wordWrap"> <bool>true</bool> </property> </widget> </item> <item> <widget class="QTextBrowser" name="textBrowser"> <property name="source"> <url> <string>qrc:/license.txt</string> </url> </property> </widget> </item> <item> <widget class="QRadioButton" name="acceptLicense"> <property name="text"> <string>I accept the license.</string> </property> </widget> </item> <item> <widget class="QRadioButton" name="declineLicense"> <property name="text"> <string>I do not accept the license.</string> </property> <property name="checked"> <bool>true</bool> </property> </widget> </item> </layout> </widget> <resources> <include location="../../../resources/additional.qrc"/> </resources> <connections/> </ui>