FreeCAD 16 Dialog Creation

From Open Source Ecology
Jump to: navigation, search

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:

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