<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # QFormBuilder Class Reference ## [[QtDesigner](index.htm) module] 該QFormBuilder類用于在運行時動態地構建用戶界面的UI文件。[More...](#details) 繼承[QAbstractFormBuilder](qabstractformbuilder.html)。 ### Methods * `__init__ (self)` * `addPluginPath (self, QString?pluginPath)` * `clearPluginPaths (self)` * `list-of-QDesignerCustomWidgetInterface customWidgets (self)` * `QStringList pluginPaths (self)` * `setPluginPath (self, QStringList?pluginPaths)` * * * ## Detailed Description 該QFormBuilder類用于在運行時動態地構建用戶界面的UI文件。 該QFormBuilder類提供了一種機制,在運行時動態地創建用戶界面的基礎上,以創建UI文件_Qt Designer_。例如: ``` MyForm.MyForm([QWidget](qwidget.html) *parent) : [QWidget](qwidget.html)(parent) { QFormBuilder builder; [QFile](qfile.html) file(":/forms/myWidget.ui"); file.open([QFile](qfile.html).ReadOnly); [QWidget](qwidget.html) *myWidget = builder.load(&file, this); file.close(); [QVBoxLayout](qvboxlayout.html) *layout = new [QVBoxLayout](qvboxlayout.html); layout->addWidget(myWidget); setLayout(layout); } ``` 通過包括在該示例的資源的用戶界面(`myForm.qrc`) ,我們保證這將是目前的例子運行時: ``` <!DOCTYPE RCC><RCC version="1.0"> <qresource prefix="/forms"> <file>mywidget.ui</file> </qresource> </RCC> ``` QFormBuilder擴展[QAbstractFormBuilder](qabstractformbuilder.html)與一些用來支持自定義窗口小部件插件功能的基類: * [pluginPaths](qformbuilder.html#pluginPaths)() returns the list of paths that the form builder searches when loading custom widget plugins. * [addPluginPath](qformbuilder.html#addPluginPath)() allows additional paths to be registered with the form builder. * [setPluginPath](qformbuilder.html#setPluginPath)() is used to replace the existing list of paths with a list obtained from some other source. * [clearPluginPaths](qformbuilder.html#clearPluginPaths)() removes all paths registered with the form builder. * [customWidgets](qformbuilder.html#customWidgets)() returns a list of interfaces to plugins that can be used to create new instances of registered custom widgets. 該QFormBuilder類通常由定制組件和應用程序嵌入_Qt Designer_。需要動態生成用戶界面在運行時獨立應用程序使用[QUiLoader](index.htm)類,在發現[QtUiTools](index.htm)模塊。 * * * ## Method Documentation ``` QFormBuilder.__init__ (self) ``` 構造一個新的表單生成器。 ``` QFormBuilder.addPluginPath (self, QString?pluginPath) ``` 通過添加指定一個新的插件路徑_pluginPath_以將由表單生成器加載一個自定義的widget插件時,被搜索的路徑列表。 **See also** [setPluginPath](qformbuilder.html#setPluginPath)()和[clearPluginPaths](qformbuilder.html#clearPluginPaths)( ) 。 ``` QFormBuilder.clearPluginPaths (self) ``` 清除表單生成器使用搜索自定義的widget插件路徑的列表。 **See also** [pluginPaths](qformbuilder.html#pluginPaths)( ) 。 ``` list-of-QDesignerCustomWidgetInterface QFormBuilder.customWidgets (self) ``` 返回的可用插件的列表。 ``` QStringList QFormBuilder.pluginPaths (self) ``` 返回的路徑表單生成器搜索插件列表中。 **See also** [addPluginPath](qformbuilder.html#addPluginPath)( ) 。 ``` QFormBuilder.setPluginPath (self, QStringList?pluginPaths) ``` 的插件路徑列表中設置由指定的列表_pluginPaths_。 **See also** [addPluginPath](qformbuilder.html#addPluginPath)( ) 。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看