Adsense

  • Latest News

    Thursday 8 February 2018

    How to convert PyQt4 Code to PyQt5 Code using 1 command- Linux/Windows

    PyQt is a great package for GUI development in Windows/Linux for applications like Embedded, Robotics, OpenCV, ML etc. If your code is build in PyQt4 but now you want to upgrade to PyQt5 then read follow this post.

    Read more about PyQt4 GUI development:
    Some software developed in PyQt4:







    Follow steps below:
    • 1. Download Source: https://github.com/rferrazz/pyqt4topyqt5
    • 2. Extract files inside your source_code directory.
    • 3. Install PyQt5
    • Linux:
      • sudo apt-get install python-pyqt5  
      • sudo apt-get install pyqt5-dev-tools
      • sudo apt-get install qttools5-dev-tools
    • Windows: https://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.10/
    • 4. Change directory to your source_code.
    • 5. Execute this command: python pyqt4topyqt5.py source.py -o output.py
    • 6. Now, rename output.py to source.py
    • 7. You have to repeat step 5 & 6 for all source.py containing import PyQt4
    • Blogger Comments
    • Facebook Comments

    1 comments:

    Thanks for your comment. We will try to reply as soon as possible.

    Regards
    VSL Creations

    Item Reviewed: How to convert PyQt4 Code to PyQt5 Code using 1 command- Linux/Windows Rating: 5 Reviewed By: Vishal Aditya
    Scroll to Top