# \#loadable-module

**URL:** https://discourse.slicer.org/tag/loadable-module/264.md

[Latest](https://discourse.slicer.org/latest.md) · [Categories](https://discourse.slicer.org/categories.md) · [Tags](https://discourse.slicer.org/tags.md)

---

## [Adding a library to a custom loadable module](https://discourse.slicer.org/t/adding-a-library-to-a-custom-loadable-module/44945)

<div class="topic-metadata">

**Author:** [@Suhaim](https://discourse.slicer.org/u/Suhaim)\
**Replies:** 1\
**Last updated:** [November 5, 2025, 8:48am UTC](https://discourse.slicer.org/t/adding-a-library-to-a-custom-loadable-module/44945 "2025-11-05T08:48:12Z")

</div>

Hi, I wanted some support on adding a library in my custom loadable module. This is my cmake for adding a library called “SystemChecker” which is inside a directory called “SystemCheck”. The library is building correc…

---

## [How to package Slicer built with a loadable module?](https://discourse.slicer.org/t/how-to-package-slicer-built-with-a-loadable-module/44964)

<div class="topic-metadata">

**Author:** [@Suhaim](https://discourse.slicer.org/u/Suhaim)\
**Replies:** 1\
**Last updated:** [November 5, 2025, 5:35am UTC](https://discourse.slicer.org/t/how-to-package-slicer-built-with-a-loadable-module/44964 "2025-11-05T05:35:26Z")

</div>

Hi everyone, I am creating this post as a reference for anyone who was wondering on how to package slicer built with a custom loadable module. I was not able to find any documentation on this, please correct me if I am …

---

## [Cannot find libraries when loading custom loadable extension because of versioning](https://discourse.slicer.org/t/cannot-find-libraries-when-loading-custom-loadable-extension-because-of-versioning/43582)

<div class="topic-metadata">

**Author:** [@glso](https://discourse.slicer.org/u/glso)\
**Replies:** 1\
**Last updated:** [July 2, 2025, 5:00pm UTC](https://discourse.slicer.org/t/cannot-find-libraries-when-loading-custom-loadable-extension-because-of-versioning/43582 "2025-07-02T17:00:32Z")

</div>

Hi, I built a loadable extension which builds and runs successfully on my Slicer-Release (5.9), built from source code on x86\_64 architecture on MacOS. My CMake version is 3.22.6. I wanted to package the extension so t…

---

## [Loadable module with external binary dependencies](https://discourse.slicer.org/t/loadable-module-with-external-binary-dependencies/40667)

<div class="topic-metadata">

**Author:** [@PatrickR](https://discourse.slicer.org/u/PatrickR)\
**Replies:** 2\
**Last updated:** [December 13, 2024, 12:16pm UTC](https://discourse.slicer.org/t/loadable-module-with-external-binary-dependencies/40667 "2024-12-13T12:16:17Z")

</div>

Hi, I am new to slicer and I am trying to learn extension development for my Company’s internal use. I am currently building an extension with a loadable module. This module depends on a few proprietary libraries distr…

---

## [Reload module error](https://discourse.slicer.org/t/reload-module-error/39581)

<div class="topic-metadata">

**Author:** [@Shirly\_Someck](https://discourse.slicer.org/u/Shirly_Someck)\
**Replies:** 5\
**Last updated:** [October 10, 2024, 11:44am UTC](https://discourse.slicer.org/t/reload-module-error/39581 "2024-10-10T11:44:27Z")

</div>

Hi, I’ve been using slicer a few months now, and recently trying to write an extension. Yesterday I moved some of my python files to a new path (since I had trouble importing them to my project), and since then I can’t…

---

## [How to build & debug correct way of custom loadable-modules](https://discourse.slicer.org/t/how-to-build-debug-correct-way-of-custom-loadable-modules/37713)

<div class="topic-metadata">

**Author:** [@jhan1245](https://discourse.slicer.org/u/jhan1245)\
**Replies:** 0\
**Last updated:** [August 5, 2024, 8:34pm UTC](https://discourse.slicer.org/t/how-to-build-debug-correct-way-of-custom-loadable-modules/37713 "2024-08-05T20:34:15Z")

</div>

Hello, I’m starting development with Slicer for the first time and I’m having trouble finding solid answers or documentation about custom Loadable Modules. I’d like to know how to build and debug a Loadable Module with …

---

## [Issue with VMTK in 3D Slicer C++ Loadable Plugin - BranchClipper Build](https://discourse.slicer.org/t/issue-with-vmtk-in-3d-slicer-c-loadable-plugin-branchclipper-build/36749)

<div class="topic-metadata">

**Author:** [@petit223](https://discourse.slicer.org/u/petit223)\
**Replies:** 0\
**Last updated:** [June 13, 2024, 8:31am UTC](https://discourse.slicer.org/t/issue-with-vmtk-in-3d-slicer-c-loadable-plugin-branchclipper-build/36749 "2024-06-13T08:31:42Z")

</div>

Hi guys, I am currently developing a C++ loadable plugin for 3D Slicer and am incorporating VMTK into this project. I’ve successfully built and loaded plugins that do not use VMTK into Slicer without any issues. However…

---

## [Create new qSlicerWidget](https://discourse.slicer.org/t/create-new-qslicerwidget/33132)

<div class="topic-metadata">

**Author:** [@Victor\_Manuel\_Montan](https://discourse.slicer.org/u/Victor_Manuel_Montan)\
**Replies:** 2\
**Last updated:** [December 1, 2023, 7:08pm UTC](https://discourse.slicer.org/t/create-new-qslicerwidget/33132 "2023-12-01T19:08:27Z")

</div>

I am developing a new qSlicerWidget that should be shown when a button that is part of a qMRMLWidget is clicked. When the new qSlicerWidget is created empty, it is possible to see the new window without any elements insi…

---

## [Linking external C++ project against Slicer loadable-module](https://discourse.slicer.org/t/linking-external-c-project-against-slicer-loadable-module/33138)

<div class="topic-metadata">

**Author:** [@Federico](https://discourse.slicer.org/u/Federico)\
**Replies:** 3\
**Last updated:** [November 30, 2023, 10:50am UTC](https://discourse.slicer.org/t/linking-external-c-project-against-slicer-loadable-module/33138 "2023-11-30T10:50:15Z")

</div>

Hi All, I saw there were a few posts that asked a similar question already but the answers were not clear enough to me unfortunately. Is it possible to link an external C++ exe/library against a Slicer Loadable Module …

---

## [How to save the content of a qTableWidget in a MRB file?](https://discourse.slicer.org/t/how-to-save-the-content-of-a-qtablewidget-in-a-mrb-file/27480)

<div class="topic-metadata">

**Author:** [@JessevdO](https://discourse.slicer.org/u/JessevdO)\
**Replies:** 3\
**Last updated:** [February 2, 2023, 10:36am UTC](https://discourse.slicer.org/t/how-to-save-the-content-of-a-qtablewidget-in-a-mrb-file/27480 "2023-02-02T10:36:17Z")

</div>

Hello, I would like to know how to save the content of a qTableWidget in a MRB file? For research I am doing, I have written a scripted loadable module which enables me to do all my measurements and save everything inf…

---

## [Error opening Extensions Manager and loading previous developed Modules](https://discourse.slicer.org/t/error-opening-extensions-manager-and-loading-previous-developed-modules/26871)

<div class="topic-metadata">

**Author:** [@LuisaDantas](https://discourse.slicer.org/u/LuisaDantas)\
**Replies:** 3\
**Last updated:** [December 21, 2022, 4:49pm UTC](https://discourse.slicer.org/t/error-opening-extensions-manager-and-loading-previous-developed-modules/26871 "2022-12-21T16:49:03Z")

</div>

Hey all, I’ve been using 3D Slicer for a while but I had to install it on a different machine and it’s giving some errors right after the installation. When I open Extensions Manager this error is printed: \[Qt\] An Ope…

---

## [Hide main window - Show only external view](https://discourse.slicer.org/t/hide-main-window-show-only-external-view/26525)

<div class="topic-metadata">

**Author:** [@lucas\_sd](https://discourse.slicer.org/u/lucas_sd)\
**Replies:** 3\
**Last updated:** [December 3, 2022, 5:19am UTC](https://discourse.slicer.org/t/hide-main-window-show-only-external-view/26525 "2022-12-03T05:19:16Z")

</div>

Hi everybody, Im running my module from the terminal using --no-main-window, and I wondering if its possible to show just an external view like that. The idea is run the module from the terminal with 3dS in the back, i…

---

## [Accessing VolumeNode in loadable](https://discourse.slicer.org/t/accessing-volumenode-in-loadable/25580)

<div class="topic-metadata">

**Author:** [@leo](https://discourse.slicer.org/u/leo)\
**Replies:** 2\
**Last updated:** [October 10, 2022, 3:46pm UTC](https://discourse.slicer.org/t/accessing-volumenode-in-loadable/25580 "2022-10-10T15:46:56Z")

</div>

I am currently attempting to implement this Python script in a loadable module in order to acces voxels. My attempts until node ended always with my custom module breaking. My understanding right now is that the way I tr…

---

## [Adding Observer within c++ loadable crashes Slicer](https://discourse.slicer.org/t/adding-observer-within-c-loadable-crashes-slicer/25044)

<div class="topic-metadata">

**Author:** [@leo](https://discourse.slicer.org/u/leo)\
**Replies:** 0\
**Last updated:** [September 1, 2022, 4:25pm UTC](https://discourse.slicer.org/t/adding-observer-within-c-loadable-crashes-slicer/25044 "2022-09-01T16:25:01Z")

</div>

Hello all! So I was trying to implement this line of code from Python in c++: id = crosshairNode.AddObserver(slicer.vtkMRMLCrosshairNode.CursorPositionModifiedEvent, onMouseMoved) and my first guess was this one: v…

---

## [loadable module to integrate a haptic device ](https://discourse.slicer.org/t/loadable-module-to-integrate-a-haptic-device/24332)

<div class="topic-metadata">

**Author:** [@leo](https://discourse.slicer.org/u/leo)\
**Replies:** 19\
**Last updated:** [August 1, 2022, 3:23pm UTC](https://discourse.slicer.org/t/loadable-module-to-integrate-a-haptic-device/24332 "2022-08-01T15:23:53Z")

</div>

Hey everyone, I am trying to create a loadable module in order to integrate a haptic device within Slicer. Now I currently managed to have prototypical usage of the devices framework within the module, my next issue is…

---

## [Detect when new vtkMRMLScalarVolumeNode with DICOM data has been added](https://discourse.slicer.org/t/detect-when-new-vtkmrmlscalarvolumenode-with-dicom-data-has-been-added/22844)

<div class="topic-metadata">

**Author:** [@bruce](https://discourse.slicer.org/u/bruce)\
**Replies:** 1\
**Last updated:** [April 6, 2022, 5:40am UTC](https://discourse.slicer.org/t/detect-when-new-vtkmrmlscalarvolumenode-with-dicom-data-has-been-added/22844 "2022-04-06T05:40:31Z")

</div>

Hello, I am writing a ScriptedLoadableModule that includes a custom table of all nodes loaded directly from DICOM data (along with custom information relating to these nodes). The table is populated based on whether DIC…

---

## [Including modules from external extension in my own custom extension](https://discourse.slicer.org/t/including-modules-from-external-extension-in-my-own-custom-extension/15732)

<div class="topic-metadata">

**Author:** [@DhruvKoolRajamani](https://discourse.slicer.org/u/DhruvKoolRajamani)\
**Replies:** 12\
**Last updated:** [March 9, 2022, 12:20am UTC](https://discourse.slicer.org/t/including-modules-from-external-extension-in-my-own-custom-extension/15732 "2022-03-09T00:20:11Z")

</div>

I’m working on creating a Slicer Extension that combines various modules available in slicer and the nvidia segmentation tool, all in one extension. I’m not sure how I can include the widgets and logic created by the nvi…

---

## [SlicerVR using Valve Index](https://discourse.slicer.org/t/slicervr-using-valve-index/19613)

<div class="topic-metadata">

**Author:** [@siqueirl](https://discourse.slicer.org/u/siqueirl)\
**Replies:** 8\
**Last updated:** [September 13, 2021, 5:30pm UTC](https://discourse.slicer.org/t/slicervr-using-valve-index/19613 "2021-09-13T17:30:06Z")

</div>

Dear all, I have attempted to use the SlicerVR Module, but it appears that the HMD is not being tracked when the “Show scene in Virtual Reality” button is toggled. I have tried making different adjustments to the scene,…

---

## [How to interact with module using python interactor? / is there a scripting info box?](https://discourse.slicer.org/t/how-to-interact-with-module-using-python-interactor-is-there-a-scripting-info-box/17990)

<div class="topic-metadata">

**Author:** [@mgpoirot](https://discourse.slicer.org/u/mgpoirot)\
**Replies:** 1\
**Last updated:** [September 7, 2021, 7:07pm UTC](https://discourse.slicer.org/t/how-to-interact-with-module-using-python-interactor-is-there-a-scripting-info-box/17990 "2021-09-07T19:07:48Z")

</div>

I’ve been able to load a file by drag and dropping it into slicer. The GUI pops up and an extension (SlicerFreeSurfer) recognizes its format and the file can be loaded. How would I replace the same actions using the co…

---

## [Python called qSlicerSubjectHierarchyParseLocalDataPlugin function](https://discourse.slicer.org/t/python-called-qslicersubjecthierarchyparselocaldataplugin-function/18600)

<div class="topic-metadata">

**Author:** [@StephenLeePeng](https://discourse.slicer.org/u/StephenLeePeng)\
**Replies:** 8\
**Last updated:** [July 18, 2021, 12:58pm UTC](https://discourse.slicer.org/t/python-called-qslicersubjecthierarchyparselocaldataplugin-function/18600 "2021-07-18T12:58:55Z")

</div>

Operating system: Ubuntu 18.04 Slicer version: 4.13.0 - self build. Expected behavior: When I load a directory contains subdirectory in the Slicer. The directory contains some .stl files. And after load, these stl mod…

---

## [Put vtkImageData on Red Yellow Green view](https://discourse.slicer.org/t/put-vtkimagedata-on-red-yellow-green-view/10201)

<div class="topic-metadata">

**Author:** [@CreepyTrick](https://discourse.slicer.org/u/CreepyTrick)\
**Replies:** 0\
**Last updated:** [February 11, 2020, 2:02pm UTC](https://discourse.slicer.org/t/put-vtkimagedata-on-red-yellow-green-view/10201 "2020-02-11T14:02:49Z")

</div>

Hello I want to put an vtkImageData on the RGY view…. I already initialized my image data like this: img-\>SetExtent(….) img-\>AllocateScalars(VTK\_DOUBLE, 1); for (….) { for (….) { img-\>SetScalarComponentFrom…

---

## [Add and connect properly GUI components to Slicer module](https://discourse.slicer.org/t/add-and-connect-properly-gui-components-to-slicer-module/9665)

<div class="topic-metadata">

**Author:** [@CreepyTrick](https://discourse.slicer.org/u/CreepyTrick)\
**Replies:** 2\
**Last updated:** [December 31, 2019, 1:20pm UTC](https://discourse.slicer.org/t/add-and-connect-properly-gui-components-to-slicer-module/9665 "2019-12-31T13:20:20Z")

</div>

Hello I come here again for a basic question … how to add and connects UI components like button and all in a new Loadable (so c++) module ? I found how to add: The UI file that i can open with Qt and add any component…
