# easy_gauge_basic

| Support            | ![](assets/images/sample_programs/applies_to/python.svg)   |
|--------------------|------------------------------------------------------------|
| Required licenses  | **EasyGauge**                                              |
| Recommended images | Any image from the folder `Sample Images/EasyGauge`        |
| Location           | `Qt samples/EasyGaugeBasic`                                |

## Purpose

This sample program demonstrates how to:

- Make subpixel measurements with **eVision** in a Qt application.

![](assets/images/sample_programs/python_specific-easygauge.webp)

## Code highlights

1. Setup the gauge widget.
   ```python
   self.gauge_widget = EasyGaugeWidget()
   self.gauge_widget.set_gauge_type(eVision.EShapeType.PointGauge)
   self.gauge_widget.set_transition_type(eVision.ETransitionType.Bw)
   self.gauge_widget.set_transition_choice(eVision.ETransitionChoice.LargestAmplitude)
   self.gauge_widget.set_view_results(True)
   ```
2. Perform a measurement with the gauge.
   ```c++
   self.xxx_gauge.Measure(self.image)
   ```
