Qt Example

This macro is an example of using Qt commands their connections, extraction and data assignment.

Are treated :


 * 1) icon for window : The icon displayed on main window
 * 2) horizontalSlider : horizontal slider its connection and data extraction / assignment
 * 3) progressBar horizontal : progress bar horizontal its connection and data extraction / assignment
 * 4) verticalSlider : vertical slider its connection and data extraction / assignment
 * 5) progressBar vertical : progress bar vertical its connection and data extraction / assignment
 * 6) lineEdit : line edit its connection and data extraction / assignment
 * 7) lineEdit : line edit  its connection and data extraction / assignment
 * 8) doubleSpinBox : double spinbox  its connection and data extraction / assignment
 * 9) doubleSpinBox :
 * 10) doubleSpinBox :
 * 11) buttom : buttom its connection
 * 12) buttom :
 * 13) radioButtom : radio button with icons its connection and checked
 * 14) checkBox : checkbox with icon  its connection checked and unchecked
 * 15) textEdit : text edit its connection and data extraction / assignment
 * 16) graphicsView : graphic view with 2 graphs and method used for change image

The tools used hare : python-2.7.8

PyQt4-4.11.4-gpl-Py2.7-Qt4.8.7-x32

The icons used




You must copy and paste the images in the same directory as the macro, here :

Linux :

Windows : "C:\Users\UserName\AppData\Roaming\FreeCAD"

Script
Qt_Example.FCMacro

Enjoy