# Embedded Qlabel as a Slicer app layout

**URL:** <https://discourse.slicer.org/t/embedded-qlabel-as-a-slicer-app-layout/20453>\
**Category:** Development\
**Tags:** python\
**Created:** [November 2, 2021, 11:12am UTC](https://discourse.slicer.org/t/embedded-qlabel-as-a-slicer-app-layout/20453 "2021-11-02T11:12:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srijeet\_Chatterjee](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/srijeet_chatterjee/32/12027_2.png) [@Srijeet\_Chatterjee](https://discourse.slicer.org/u/Srijeet_Chatterjee)\
**Post date:** [November 2, 2021, 11:12am UTC](https://discourse.slicer.org/t/embedded-qlabel-as-a-slicer-app-layout/20453/1 "2021-11-02T11:12:43Z")

</div>

Hello everyone,

Hope it’s going good!  
Currently, I am using slicer to display some images(or video) on a Qlabel. It seems to work fine, but I want to embedd the Qlabel window on the slicer layout, instead of any one of the Planar or 3D views. Can anyone share some ideas/ let me know a nice way to get this done?

Thanks in advance,  
Best regards,  
Srijeet

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [November 2, 2021, 7:39pm UTC](https://discourse.slicer.org/t/embedded-qlabel-as-a-slicer-app-layout/20453/2 "2021-11-02T19:39:15Z")

</div>

You can use the same method how the DICOM module shows the DICOM browser widget in the layout.

However, to take full advantage of all Slicer features, such as real-time processing, analysis, annotation, measurement, recording and replay, etc. of 2D/3D image streams, I would strongly recommend to use a 2D or 3D viewer instead of the extremely limited QLabel.

You don’t even need to implement the streaming interface, you can use SlicerOpenIGTLink module to receive and visualize real-time image streams. By using [Plus toolkit](https://plustoolkit.github.io/) there is a good chance that you don’t need to do any custom software development if you want to connect to your ultrasound, endoscope, video camera, depth camera, etc… See [https://www.slicerigt.org/](https://www.slicerigt.org/) for some examples.

---

<div class="post-metadata">

**Author:** ![Srijeet\_Chatterjee](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/srijeet_chatterjee/32/12027_2.png) [@Srijeet\_Chatterjee](https://discourse.slicer.org/u/Srijeet_Chatterjee)\
**Post date:** [November 3, 2021, 7:03am UTC](https://discourse.slicer.org/t/embedded-qlabel-as-a-slicer-app-layout/20453/3 "2021-11-03T07:03:10Z")

</div>

Thank you so much for the explanations and hints, I would look into the DICOM module and the Plus toolkit. I could already get the image streams on the viewers, this one I wanted to try out additionally.
