# Can a widget developed with PyQt be loaded and displayed in C++?

**URL:** <https://discourse.slicer.org/t/can-a-widget-developed-with-pyqt-be-loaded-and-displayed-in-c/36753>\
**Category:** Development\
**Created:** [June 13, 2024, 10:43am UTC](https://discourse.slicer.org/t/can-a-widget-developed-with-pyqt-be-loaded-and-displayed-in-c/36753 "2024-06-13T10:43:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![herryliq](https://avatars.discourse-cdn.com/v4/letter/h/3bc359/32.png) [@herryliq](https://discourse.slicer.org/u/herryliq)\
**Post date:** [June 13, 2024, 10:43am UTC](https://discourse.slicer.org/t/can-a-widget-developed-with-pyqt-be-loaded-and-displayed-in-c/36753/1 "2024-06-13T10:43:31Z")

</div>

**Background:**  
Custom development based on 3DSlicer.  
Need a common header that displays different page names during screen transitions.

Considering the complexity of C++ development, I would like to develop a common widget using PyQt to be placed in the MainWindow. Therefore, I would like to know:

In the existing code framework of 3DSlicer, can a widget developed with PyQt be loaded and displayed in C++?
