FreeCAD 16 Dialog Creation: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
No edit summary
 
Line 22: Line 22:


     pyuic4 angle-frame-connector-dialog.ui -o test.py
     pyuic4 angle-frame-connector-dialog.ui -o test.py
[[Category:FreeCAD]]

Latest revision as of 00:08, 6 May 2020

Why this guide?

FreeCAD 16 depends upon Qt version 4.8.6.

The rest of the world has moved on to Qt v5 and therefore, this guide is helpful as it focuses on Qt v4.

Since the author of this page uses Ubuntu / Linux, it will focus on that operating system.

Main FreeCAD Wiki Guide

Follow along this FreeCAD Wiki Guide: https://wiki.freecadweb.org/Dialog_creation

Install Qt 4.8.6

Download Qt 4.8.6 here to download, and follow installation instructions for your operating system here.

   sudo apt-get install pyqt4-dev-tools qt4-designer qt4-default qtcreator
   sudo vim /usr/bin/pyuic4
   1 #!/usr/bin/env /snap/freecad/8/usr/bin/python2.7
   2 # there's no main function, so just import the module
   3 import PyQt4.uic.pyuic
   pyuic4 angle-frame-connector-dialog.ui -o test.py