<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                [TOC] ## WHY 在前面的示例中我們知道了創建一個pyqt項目的基本代碼,若是我們要更快速方便地編輯,我們可以使用圖形化的QTDesigner ## 安裝配置 1. 找到你的anaconda目錄中Designer的位置: ![](https://img.kancloud.cn/16/84/1684f0b49c3ccea6a3c759eb8ba942ad_785x805.png) ![](https://img.kancloud.cn/6d/c3/6dc3f32e96858e1a30da687b0366a850_997x232.png) ![](https://img.kancloud.cn/6c/ec/6cecd58adfbeefb1f9408c94806e9eb4_925x241.png) 2. 在pycharm中添加QTDesigner擴展 打開pycharm設置 ![](https://img.kancloud.cn/4b/3f/4b3f84d4448e2a7adeaf8a1f4a1e0ae0_715x232.png) 添加額外工具 ![](https://img.kancloud.cn/a6/67/a667d83bdd42b978cee2fdfb378b1495_982x372.png) 其中的program選擇designer.exe ![](https://img.kancloud.cn/f5/8b/f58b5d529665581bfd2c9b1faaed6198_773x380.png) 其中的工作目錄使用`$ProjectFileDir$` ![](https://img.kancloud.cn/4a/b2/4ab293fef986e7fdf726e3b6ac0fb086_763x343.png) ## 使用QTDesigner-1 1. 使用QTDesigner生成UI文件 使用pycharm的萬能搜索 ![](https://img.kancloud.cn/ed/76/ed762e3cbd5934d9ee07b3eda9bd99c0_501x103.png) 找到QTDesigner ![](https://img.kancloud.cn/3e/91/3e91c23d68cd4b3099958ea1675f5c6b_642x180.png) 即可打開設計師界面,隨意創建一個窗口 ![](https://img.kancloud.cn/6a/e4/6ae423746b182f9932a65d87152fdba5_1594x720.png) 隨意拖動一個按鈕,創建窗口內容 ![](https://img.kancloud.cn/96/db/96db9a52eafc30e4867f0ce1c28d51df_1512x725.png) 保存到你的工作目錄 ![](https://img.kancloud.cn/b1/e1/b1e1391823245693a9cf5e961c09f855_1262x743.png) 即可在pycharm工作目錄看見一個叫test.ui的xml文件 ![](https://img.kancloud.cn/87/71/877175f7308ff3d570c12e6f600bd366_1392x607.png) 2. UI文件轉換為可以使用的py文件 使用pycharm的terminal,進入test.ui所在的目錄,使用下列命令 ![](https://img.kancloud.cn/06/bf/06bf5865d9a506645d06e88c07ba33d7_655x84.png) ``` python -m PyQt5.uic.pyuic test.ui -o test.py ``` 得到test.py文件 ![](https://img.kancloud.cn/a4/9d/a49d894c3a3d8a99036e72e23c391c99_1248x542.png) 3. 使用test.py文件 ## 使用QTDesigner-2 直接動態加載上面生成的UI文件
                  <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>

                              哎呀哎呀视频在线观看