QT GUI Graphic Overlay Sample Source
This block is an example of how to feed an overlay to a graphic item. The graphic item overlay is expecting a dictionary with the following keys: 'filename','x','y', and optionally a 'scalefactor'. A list of dictionaries can also be supplied to support multiple items.
Any file can be added to the graphic item as an overlay and the particular item indexed by its filename can be updated by passing in new x/y coordinates. To remove an overlay, use coordinates -1,-1 for the x,y coordinates.
This sample block sends either a dictionary or list of dictionaries to the graphicitem block. To test updating a single overlay item, you can use a list with the same file but different coordinates and use the update delay > 0.0 to animate it.
Added in 3.9
- Overlay Dict or List(dict)
- a dictionary or list - see above
- If List Send With Delay (sec)
- delay between items
- If List Repeat
- repeat (default: True)
This flowgraph can be found at 
- C++ files
- Header files
- Public header files
- Block definition