Qt Example

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

Are treated :


 * 1) icon for window
 * 2) horizontalSlider
 * 3) progressBar horizontal
 * 4) verticalSlider
 * 5) progressBar vertical
 * 6) lineEdit
 * 7) lineEdit
 * 8) doubleSpinBox
 * 9) doubleSpinBox
 * 10) doubleSpinBox
 * 11) buttom
 * 12) buttom
 * 13) radioButtom with icons
 * 14) checkBox with icon checked and unchecked
 * 15) textEdit
 * 16) graphicsView with 2 graphes

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 :)