# ctkDateRangeWidget not available on Qt Designer

**URL:** <https://discourse.slicer.org/t/ctkdaterangewidget-not-available-on-qt-designer/27673>\
**Category:** Development\
**Tags:** qt, ctk, gui\
**Created:** [February 6, 2023, 7:13pm UTC](https://discourse.slicer.org/t/ctkdaterangewidget-not-available-on-qt-designer/27673 "2023-02-06T19:13:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabriel\_WK](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gabriel_wk/32/17179_2.png) [@Gabriel\_WK](https://discourse.slicer.org/u/Gabriel_WK)\
**Post date:** [February 6, 2023, 7:13pm UTC](https://discourse.slicer.org/t/ctkdaterangewidget-not-available-on-qt-designer/27673/1 "2023-02-06T19:13:03Z")

</div>

When editing a custom extension UI on Qt Designer using the “Edit UI” button in the Developer Section, ctkDateRangeWidget is not available. It’s still available through python with `ctk.ctkDateRangeWidget()`. Is there a way to import ctkDateRangeWidget and directly add it to the .ui file?

 ![Captura de tela_20230206_154713](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/0/f0612c52499de4d0e12f6bef7a7cc0e95459100b.png)

---

<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:** [February 6, 2023, 9:40pm UTC](https://discourse.slicer.org/t/ctkdaterangewidget-not-available-on-qt-designer/27673/2 "2023-02-06T21:40:24Z")

</div>

ctkDateRangeWidget just does not have a designer plugin. To fix it, two files has to be added to CTK (in CTK\Libs\Widgets\Plugins) and add the class to CMakeLists.txt and ctkWidgetsPlugins.h. It would be great if you could submit a pull request with this change to [CTK](https://github.com/commontk/CTK). You may not even need to build it, we can test it before we merge the pull request.

In the meantime, as a workaround, you can add a frame in Qt designer and then put the ctkDateRangeWidget in the frame in your Python code.
