<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                http://[blog.csdn.net/pipisorry/article/details/37730443](http://blog.csdn.net/pipisorry/article/details/37730443) 目前發現的python下最好的圖形庫,wxpython、tkinter都覺得沒這個好用。PyQt的核心是Qt(c++)庫,一般不會占用太多時間的邏輯代碼速度慢點,也不會成為瓶頸。同時,在使用方式上,PyQt并沒有失去Python的優雅語法,快速開發的能力。 # **安裝pythonQt** OS: Windows 7 64bits python version: 3.4 PyQt5下載 [Download](http://www.riverbankcomputing.com/software/pyqt/download5),選擇PyQt5-5.5.1-gpl-Py3.4-Qt5.5.1-x64.exeWindows 64 bit installer下載并安裝 **Note:** 1. 注意選擇正確的Python版本和系統位數。 2. 安裝PyQt并不需要一些文章中提到的先安裝sip和Qt的過程,因為在安裝文件中已經包括。 pyqt直接用exe文件安裝較好,pip安裝比較復雜。 [[Installing PyQt... because it’s too good for pip or easy_install](http://movingthelamppost.com/blog/html/2013/07/12/installing_pyqt____because_it_s_too_good_for_pip_or_easy_install_.html)] [[How to install PyQt4 on Windows using pip?](http://stackoverflow.com/questions/22640640/how-to-install-pyqt4-on-windows-using-pip)] **測試是否安裝成功** import PyQt5 沒報錯說明安裝成功 皮皮blog **pythonQt Designer配置** pyqt提供了Qt designer來設計窗口界面,用起來也非常方便,雖然做出來的界面不那么華麗。 增加系統變量QT_QPA_PLATFORM_PLUGIN_PATH D:\python3.4.2\Lib\site-packages\PyQt5\plugins **Note**:這是你安裝pyqt目錄下的插件目錄 ### **pycharm中配置qtdesigner** PyCharm > settings > tools > external tools > +添加 Qt Designer的設置如圖: ![](https://box.kancloud.cn/2016-02-22_56ca830b93983.jpg) **Note**: 1. Program選擇PyQt安裝目錄中?designer.exe?的路徑 2. Work directory 刪除后使用變量?$FileDir$?(點擊后面的 Insert macro 按鈕來選擇),我的是包目錄E:\mine\python_workspace\PyQt **Note**:$FileDir$ 指的是選中文件所在文件夾路徑;$FileName$指的是選中文件的文件名 **pycharm中配置PyUIC**[](http://blog.csdn.net/pipisorry/article/details/45999965) {用來將 Qt界面xml代碼 轉換成py代碼} PyUIC的設置類似qt designer,如圖 ![](https://box.kancloud.cn/2016-02-22_56ca830bad362.jpg) program: Python安裝路徑 Parameters: -m PyQt5.uic.pyuic ?$FileName$ -o $FileNameWithoutExtension$.py Work directory 使用變量?$FileDir$ 配置完成后,pycharm菜單欄中tool的變化: ![](https://box.kancloud.cn/2016-02-22_56ca830bc9402.jpg) ![](https://box.kancloud.cn/2016-02-22_56ca830bd90ab.jpg) ### pycharm中配置Pyrcc {這個是用于將qrc資源文件轉換成py文件的工具的配置} ![](https://box.kancloud.cn/2016-02-22_56ca830be9b12.jpg) 如果在qt designer中使用了qrc資源文件,而沒有將其轉換為py文件就會出錯:import error no module named resource_rc [[ImportError: No module named resource_rc](http://pythontips.com/2014/03/08/importerror-no-module-named-resource_rc/)] [皮皮blog](http://blog.csdn.net/pipisorry) **PyQT5和PyQt4的區別** Porting to Qt5 has two aspects: 1) Getting the core PythonQt to build (that should be merely adjusting the qmake profile and maybe some incompatibilities in QMetaObject and friends) 2) Getting the Qt 4 wrappers to work (run the pythonqt_generator and see what happens… Some extra includes and fixes in the typesystem might be required) The Qt wrappers could be done in two ways: Qt4 backward compatible (With **widgets **being located in PythonQt.QtGui) or Qt5 only (with widgets being located in a new PythonQt.QtWidgets package). PyQt5的Widget被分離出來,似乎用來替代Dialog,并將Widget放入了QtWidget模塊(庫)中,PyQt4是QtGUI。 I would also think it might be useful to watch what PySide and PyQt are doing in that respect (google for "PySide Qt5" or "PyQt Qt5"). So if you only require the core PythonQt library (without complete Qt wrappers), it should be the work of 1-2 days and you can contribute the code to PythonQt. If you aim for the complete wrappers, using Qt4 wrappers is the easiest but will take some tweaking to adapt. Generating real Qt5 wrappers is more work. [[sourceforge-PythonQt-Discussion](http://sourceforge.net/p/pythonqt/discussion/631392/thread/5f20c176/)] [[PyQt 5.4參考指南 ---- PyQt5和PyQt4之間的差異](http://www.bubuko.com/infodetail-613067.html)] from:[http://blog.csdn.net/pipisorry/article/details/37730443](http://blog.csdn.net/pipisorry/article/details/37730443)[](http://blog.csdn.net/pipisorry/article/details/45999965) ref:[pythonqt example](http://pythonqt.sourceforge.net/Examples.html) [Windows下PyQt4的安裝](http://www.pythoner.com/83.html)
                  <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>

                              哎呀哎呀视频在线观看