Slicer3:Developers:Projects:QtSlicer/Tutorials/ModuleWriting

From Slicer Wiki
Revision as of 00:05, 12 January 2011 by Finetjul (talk | contribs) (Created page with '* Create the Module directory cd Slicer4 python Scripts/ModuleWizard.py MY_MODULE_NAME Note: on Windows ..\Slicer4-Superbuild\python-build\PCBuild\python.exe Scripts\ModuleWiz…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home < Slicer3:Developers:Projects:QtSlicer < Tutorials < ModuleWriting
  • Create the Module directory
cd Slicer4
python Scripts/ModuleWizard.py MY_MODULE_NAME

Note: on Windows

..\Slicer4-Superbuild\python-build\PCBuild\python.exe Scripts\ModuleWizard.py MY_MODULE_NAME
  • Add the newly created module into Slicer4/QTModules/CMakeLists.txt
  • Compile
  • Start Slicer and verify the module is present
  • Open the designer via the launcher
cd Slicer4-Superbuild/Slicer-build
slicer4 --designer
  • Open the module UI file (QTModules/MY_MODULE_NAME/Resources/UI/qSlicerMY_MODULE_NAMEModule.ui)