# \#qt

**URL:** https://discourse.slicer.org/tag/qt/65.md

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

---

## [How to update widget from logic?](https://discourse.slicer.org/t/how-to-update-widget-from-logic/45671)

<div class="topic-metadata">

**Author:** [@Victor\_Wayne](https://discourse.slicer.org/u/Victor_Wayne)\
**Replies:** 4\
**Last updated:** [January 7, 2026, 3:47am UTC](https://discourse.slicer.org/t/how-to-update-widget-from-logic/45671 "2026-01-07T03:47:09Z")

</div>

I have a C++ extension module. I am doing boolean mesh operation calculation in a worker thread inside the logic module. I have a function that calculates the volume of a given segmentation node. I need it run as soon as…

---

## [QLineEdit in extension UI: Cursor jumping to end of line (bug?)](https://discourse.slicer.org/t/qlineedit-in-extension-ui-cursor-jumping-to-end-of-line-bug/43954)

<div class="topic-metadata">

**Author:** [@shai-ikko](https://discourse.slicer.org/u/shai-ikko)\
**Replies:** 6\
**Last updated:** [August 5, 2025, 4:42pm UTC](https://discourse.slicer.org/t/qlineedit-in-extension-ui-cursor-jumping-to-end-of-line-bug/43954 "2025-08-05T16:42:50Z")

</div>

Hi, I’ve been writing some Slicer extensions using the Extension Wizard & Qt Designer, and it’s been mostly working very well. But I’m seeing a funny behavior, which I think is a bug. I have extensions which use simple…

---

## [Create a simple UI](https://discourse.slicer.org/t/create-a-simple-ui/41460)

<div class="topic-metadata">

**Author:** [@SANTIAGO\_PENDON\_MING](https://discourse.slicer.org/u/SANTIAGO_PENDON_MING)\
**Replies:** 4\
**Last updated:** [February 5, 2025, 1:28pm UTC](https://discourse.slicer.org/t/create-a-simple-ui/41460 "2025-02-05T13:28:53Z")

</div>

Hi to everyone! version: 5.6.2 OS: windows11 I’m working in create a robust (but also simple) interface for our python module named SegmentTracer. This code contains several classes and create/remove buttons begins t…

---

## [Move a Qt Dockwidget](https://discourse.slicer.org/t/move-a-qt-dockwidget/35746)

<div class="topic-metadata">

**Author:** [@SANTIAGO\_PENDON\_MING](https://discourse.slicer.org/u/SANTIAGO_PENDON_MING)\
**Replies:** 1\
**Last updated:** [April 29, 2024, 1:51pm UTC](https://discourse.slicer.org/t/move-a-qt-dockwidget/35746 "2024-04-29T13:51:17Z")

</div>

Hi to all the community. The task today is move my DockWidgetArea from here: to here: At this moment I’m doing it manually, but I’m sure that specifying the correct configuration it could be made automatically. …

---

## [Failed build Slicer in Windows10 with Visual Studio 2017,Qt 5.10.1](https://discourse.slicer.org/t/failed-build-slicer-in-windows10-with-visual-studio-2017-qt-5-10-1/19718)

<div class="topic-metadata">

**Author:** [@kookoo9999](https://discourse.slicer.org/u/kookoo9999)\
**Replies:** 27\
**Last updated:** [April 15, 2024, 10:48am UTC](https://discourse.slicer.org/t/failed-build-slicer-in-windows10-with-visual-studio-2017-qt-5-10-1/19718 "2024-04-15T10:48:14Z")

</div>

I wnat to build Slicer ( 4.11 20200930) on Windows10 but build failed repeatedly. In the past , I tried to build Slicer Source(from git “master” branch) but I saw the CMake configuration error occured.(env : Visual Stud…

---

## [Include and compile itk, vtk as an ExternalProject or Submodule](https://discourse.slicer.org/t/include-and-compile-itk-vtk-as-an-externalproject-or-submodule/35337)

<div class="topic-metadata">

**Author:** [@weidonglian](https://discourse.slicer.org/u/weidonglian)\
**Replies:** 2\
**Last updated:** [April 7, 2024, 7:47pm UTC](https://discourse.slicer.org/t/include-and-compile-itk-vtk-as-an-externalproject-or-submodule/35337 "2024-04-07T19:47:51Z")

</div>

In my c++ application, I need to use both itk, vtk and qt. In order to make the development reproducible without build itk/vtk as a seperate cmake project which definitely has a lot overhead. I have tried so far add itk…

---

## [How to get GPU information using QT and VTK?](https://discourse.slicer.org/t/how-to-get-gpu-information-using-qt-and-vtk/35297)

<div class="topic-metadata">

**Author:** [@BerDom.Ing](https://discourse.slicer.org/u/BerDom.Ing)\
**Replies:** 10\
**Last updated:** [April 6, 2024, 8:57pm UTC](https://discourse.slicer.org/t/how-to-get-gpu-information-using-qt-and-vtk/35297 "2024-04-06T20:57:00Z")

</div>

I’m trying to create a method that returns the graphics card information. To do this, I’m importing “from vtk.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor”. def get\_graphics\_card\_info(): …

---

## [What would be the best way to let a user select scenes and channel colours in a microscopy oriented importer?](https://discourse.slicer.org/t/what-would-be-the-best-way-to-let-a-user-select-scenes-and-channel-colours-in-a-microscopy-oriented-importer/31595)

<div class="topic-metadata">

**Author:** [@EgorZindy](https://discourse.slicer.org/u/EgorZindy)\
**Replies:** 5\
**Last updated:** [September 6, 2023, 9:01pm UTC](https://discourse.slicer.org/t/what-would-be-the-best-way-to-let-a-user-select-scenes-and-channel-colours-in-a-microscopy-oriented-importer/31595 "2023-09-06T21:01:47Z")

</div>

Hello everyone. So for my CZI importer, there are two things I think need to be user-selectable at import time: A CZI file may contain multiple scenes, and a user may decide which scenes need importing. The channel co…

---

## [How to really select a qComboBox programmly](https://discourse.slicer.org/t/how-to-really-select-a-qcombobox-programmly/28259)

<div class="topic-metadata">

**Author:** [@WilliamLambert1205](https://discourse.slicer.org/u/WilliamLambert1205)\
**Replies:** 0\
**Last updated:** [March 9, 2023, 2:23pm UTC](https://discourse.slicer.org/t/how-to-really-select-a-qcombobox-programmly/28259 "2023-03-09T14:23:52Z")

</div>

Hi,everyone. I’m trying to using code to substitute a series of mouse clicking and I get into trouble, please guide me. In the first step, I need to select the first item in ‘OutputVolume’.(‘OutputVolume’ is a qComboBox…

---

## [Media control symbol in button with same style - Play Stop Previous and Next](https://discourse.slicer.org/t/media-control-symbol-in-button-with-same-style-play-stop-previous-and-next/27901)

<div class="topic-metadata">

**Author:** [@haphantran](https://discourse.slicer.org/u/haphantran)\
**Replies:** 1\
**Last updated:** [February 18, 2023, 2:36pm UTC](https://discourse.slicer.org/t/media-control-symbol-in-button-with-same-style-play-stop-previous-and-next/27901 "2023-02-18T14:36:21Z")

</div>

Hi guys, I’m trying to build an extension that can control the images play back. I made the UI with media control symbol and the timeline slider. I got one problem where I can’t find the set of unicode symbol that rend…

---

## [ctkDateRangeWidget not available on Qt Designer](https://discourse.slicer.org/t/ctkdaterangewidget-not-available-on-qt-designer/27673)

<div class="topic-metadata">

**Author:** [@Gabriel\_WK](https://discourse.slicer.org/u/Gabriel_WK)\
**Replies:** 1\
**Last updated:** [February 6, 2023, 9:40pm UTC](https://discourse.slicer.org/t/ctkdaterangewidget-not-available-on-qt-designer/27673 "2023-02-06T21:40:24Z")

</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 wa…

---

## [qSlicerMarkupsPlaceWidget - Get control point coordinates](https://discourse.slicer.org/t/qslicermarkupsplacewidget-get-control-point-coordinates/26506)

<div class="topic-metadata">

**Author:** [@LuisaDantas](https://discourse.slicer.org/u/LuisaDantas)\
**Replies:** 5\
**Last updated:** [December 7, 2022, 10:20am UTC](https://discourse.slicer.org/t/qslicermarkupsplacewidget-get-control-point-coordinates/26506 "2022-12-07T10:20:15Z")

</div>

Hey! I’m building a module for Slicer and using qSlicerMarkupsPlaceWidget() to let the user place a control point on the image. The ideia is just to get the coordinates of this control point, but I’m not sure how to acc…

---

## [Running scripted-cli prevents QProcess from finishing](https://discourse.slicer.org/t/running-scripted-cli-prevents-qprocess-from-finishing/26534)

<div class="topic-metadata">

**Author:** [@brandus1](https://discourse.slicer.org/u/brandus1)\
**Replies:** 1\
**Last updated:** [December 3, 2022, 3:45pm UTC](https://discourse.slicer.org/t/running-scripted-cli-prevents-qprocess-from-finishing/26534 "2022-12-03T15:45:57Z")

</div>

I have a module where I periodically run an instance of a subclass of QProcess, which is basically identical to @pieper 's Process class in SlicerParallelProcessing. I use this class to run a python script that polls an…

---

## [How to make derived widget and add into Widget Box in Qt Designer?](https://discourse.slicer.org/t/how-to-make-derived-widget-and-add-into-widget-box-in-qt-designer/24929)

<div class="topic-metadata">

**Author:** [@sunshine](https://discourse.slicer.org/u/sunshine)\
**Replies:** 0\
**Last updated:** [August 25, 2022, 8:30pm UTC](https://discourse.slicer.org/t/how-to-make-derived-widget-and-add-into-widget-box-in-qt-designer/24929 "2022-08-25T20:30:08Z")

</div>

Hi everyone, I am trying to set up two different fonts for a QPushButton, however, the existing one only support one font. I would like to make a RichPushButton derived from QPushButton to support different fonts, and …

---

## [QT license type in Slicer and commerical use question?](https://discourse.slicer.org/t/qt-license-type-in-slicer-and-commerical-use-question/24364)

<div class="topic-metadata">

**Author:** [@StephenLeePeng](https://discourse.slicer.org/u/StephenLeePeng)\
**Replies:** 3\
**Last updated:** [July 18, 2022, 8:06pm UTC](https://discourse.slicer.org/t/qt-license-type-in-slicer-and-commerical-use-question/24364 "2022-07-18T20:06:25Z")

</div>

Hi everybody. As QT is GUI Framework for Slicer, and QT has two types license, LGPL and GPL. LGPL includes: Core, Widgets, QML and so on. GPL includes Qt Chats and so on. As I develop a product, built as an extension…

---

## [QT designer python code generation, and nodule auto-naming](https://discourse.slicer.org/t/qt-designer-python-code-generation-and-nodule-auto-naming/24186)

<div class="topic-metadata">

**Author:** [@Kevin.Kn](https://discourse.slicer.org/u/Kevin.Kn)\
**Replies:** 7\
**Last updated:** [July 7, 2022, 3:02am UTC](https://discourse.slicer.org/t/qt-designer-python-code-generation-and-nodule-auto-naming/24186 "2022-07-07T03:02:00Z")

</div>

I have been messing around with creating my own extensions, and was wondering if it was possible at all for code to be generated from the Qt Designer in a python environment. I see this previous post and that the design…

---

## [Proxy issue in Extensions Manager](https://discourse.slicer.org/t/proxy-issue-in-extensions-manager/23467)

<div class="topic-metadata">

**Author:** [@simonoxen](https://discourse.slicer.org/u/simonoxen)\
**Replies:** 9\
**Last updated:** [June 12, 2022, 12:46pm UTC](https://discourse.slicer.org/t/proxy-issue-in-extensions-manager/23467 "2022-06-12T12:46:29Z")

</div>

Hi, when using work computer (MacOS, network with proxy) I’ve been having the issue that extensions cannot be downloaded from the Extensions Manager. Extensions show, but fails to retrieve metadata and to install them. …

---

## [Cannot get a second vtkMRMLNodeComboBox to show nodes](https://discourse.slicer.org/t/cannot-get-a-second-vtkmrmlnodecombobox-to-show-nodes/18204)

<div class="topic-metadata">

**Author:** [@atracsys-sbt](https://discourse.slicer.org/u/atracsys-sbt)\
**Replies:** 5\
**Last updated:** [April 2, 2022, 12:39am UTC](https://discourse.slicer.org/t/cannot-get-a-second-vtkmrmlnodecombobox-to-show-nodes/18204 "2022-04-02T00:39:46Z")

</div>

Hi, I’m trying to develop a module in which I can choose model nodes as two inputs. I started from the module automatically created from the Extension Wizard and after setting vtkMRMLModelNode as the nodeType for the v…

---

## [Cmake cannot generate the SlicerConfig.cmake](https://discourse.slicer.org/t/cmake-cannot-generate-the-slicerconfig-cmake/22069)

<div class="topic-metadata">

**Author:** [@user5](https://discourse.slicer.org/u/user5)\
**Replies:** 9\
**Last updated:** [March 16, 2022, 4:01pm UTC](https://discourse.slicer.org/t/cmake-cannot-generate-the-slicerconfig-cmake/22069 "2022-03-16T16:01:05Z")

</div>

I already follow the instruction to build the Slicer inner-build folder in git bash or cmake gui, but it still comes out this error. Documentation/Nightly/Developers/Build Instructions/Configure - Slicer Wiki Extens…

---

## [Include built-in widget into my own Python extension](https://discourse.slicer.org/t/include-built-in-widget-into-my-own-python-extension/21458)

<div class="topic-metadata">

**Author:** [@CsatiZoltan](https://discourse.slicer.org/u/CsatiZoltan)\
**Replies:** 5\
**Last updated:** [January 19, 2022, 2:54am UTC](https://discourse.slicer.org/t/include-built-in-widget-into-my-own-python-extension/21458 "2022-01-19T02:54:06Z")

</div>

Hi, I want to develop a simple extension in Python. One step involves placing points on the 3D scene. I realized that the fiducial markup is perfect for my use case, so I want to add that icon, along with the logic it i…

---

## [Faild build Slicer in Windows10 with Visual Studio 2017,Qt 5.10.1](https://discourse.slicer.org/t/faild-build-slicer-in-windows10-with-visual-studio-2017-qt-5-10-1/19724)

<div class="topic-metadata">

**Author:** [@kookoo9999](https://discourse.slicer.org/u/kookoo9999)\
**Replies:** 1\
**Last updated:** [September 26, 2021, 4:03am UTC](https://discourse.slicer.org/t/faild-build-slicer-in-windows10-with-visual-studio-2017-qt-5-10-1/19724 "2021-09-26T04:03:01Z")

</div>

Hello thanks for reading. I wnat to build Slicer ( 4.11 20200930) on Windows10 but build failed repeatedly. In the past , I tried to build Slicer Source(from git “master” branch) but I saw the CMake configuration erro…

---

## [I can't build Slicer master branch in Windows10 via VisualStudio2019(toolset v142),Qt5.15.2](https://discourse.slicer.org/t/i-cant-build-slicer-master-branch-in-windows10-via-visualstudio2019-toolset-v142-qt5-15-2/19829)

<div class="topic-metadata">

**Author:** [@kookoo9999](https://discourse.slicer.org/u/kookoo9999)\
**Replies:** 2\
**Last updated:** [September 26, 2021, 3:47am UTC](https://discourse.slicer.org/t/i-cant-build-slicer-master-branch-in-windows10-via-visualstudio2019-toolset-v142-qt5-15-2/19829 "2021-09-26T03:47:28Z")

</div>

@jamesobutler @lassoan I tried to build a different release in a different environment, but I failed every time, so I’m trying to build the current branch. I just tried to build Slicer master branch in Windows 10 via …

---

## [Build Slicer on Windows 10 Failed](https://discourse.slicer.org/t/build-slicer-on-windows-10-failed/2232)

<div class="topic-metadata">

**Author:** [@leochan2009](https://discourse.slicer.org/u/leochan2009)\
**Replies:** 49\
**Last updated:** [September 17, 2021, 7:27am UTC](https://discourse.slicer.org/t/build-slicer-on-windows-10-failed/2232 "2021-09-17T07:27:08Z")

</div>

Hi, Did anyone have succesfully built the latest Slicer on Windows 10 machine. I am building slicer on my Windows 10 machine, and the compiler is “Visual studio 14 2015”. The error message came from the qSlicerApplica…

---

## [qMRMLListWidget lists nodes of one type](https://discourse.slicer.org/t/qmrmllistwidget-lists-nodes-of-one-type/19490)

<div class="topic-metadata">

**Author:** [@wabwan25](https://discourse.slicer.org/u/wabwan25)\
**Replies:** 1\
**Last updated:** [September 3, 2021, 4:55am UTC](https://discourse.slicer.org/t/qmrmllistwidget-lists-nodes-of-one-type/19490 "2021-09-03T04:55:38Z")

</div>

I use qtdesigner to create a list widget to list model nodes in the scene, then a user can select multiple items for process. I use qMRMLListWidget, however, the function setMRMLScene(vtkMRMLScene\*) lists all the nodes.…

---

## [Play a sound in script](https://discourse.slicer.org/t/play-a-sound-in-script/19171)

<div class="topic-metadata">

**Author:** [@atracsys-sbt](https://discourse.slicer.org/u/atracsys-sbt)\
**Replies:** 14\
**Last updated:** [August 18, 2021, 4:29pm UTC](https://discourse.slicer.org/t/play-a-sound-in-script/19171 "2021-08-18T16:29:45Z")

</div>

Hi, From this discussion, I’ve gathered that it is possible to play a sound in Slicer, based on QSound. As I’m writing a scripted module, I would like to be able to play a beep in certain circumstances. However, I could…

---

## [Get Qt sender in Python slot](https://discourse.slicer.org/t/get-qt-sender-in-python-slot/18247)

<div class="topic-metadata">

**Author:** [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Replies:** 5\
**Last updated:** [June 21, 2021, 4:06pm UTC](https://discourse.slicer.org/t/get-qt-sender-in-python-slot/18247 "2021-06-21T16:06:38Z")

</div>

Hi all, I have been debugging a strange issue, and maybe someone here can help. When I load a scene in a Slicer custom app, an SH combobox currentItemChanged signal is emitted from an unknown place. There is nothing in…

---

## [\`findChild\` is not an attribute](https://discourse.slicer.org/t/findchild-is-not-an-attribute/17490)

<div class="topic-metadata">

**Author:** [@joachim](https://discourse.slicer.org/u/joachim)\
**Replies:** 5\
**Last updated:** [May 14, 2021, 12:45pm UTC](https://discourse.slicer.org/t/findchild-is-not-an-attribute/17490 "2021-05-14T12:45:30Z")

</div>

I downloaded the latest build (4.13.0-2021-05-04) and now my .slicerrc.py is not working. This is because I’m trying to reach a button of SegmentEditorWidget: show3DButton = getModuleGui( 'SegmentEditor' ).findChild( 'c…

---

## [How to add default text to combobox(qMRMLNodeComboBox) before opening any customize model.](https://discourse.slicer.org/t/how-to-add-default-text-to-combobox-qmrmlnodecombobox-before-opening-any-customize-model/17569)

<div class="topic-metadata">

**Author:** [@Mahesh\_Timmanagoudar](https://discourse.slicer.org/u/Mahesh_Timmanagoudar)\
**Replies:** 3\
**Last updated:** [May 12, 2021, 12:24pm UTC](https://discourse.slicer.org/t/how-to-add-default-text-to-combobox-qmrmlnodecombobox-before-opening-any-customize-model/17569 "2021-05-12T12:24:41Z")

</div>

we have customised model. The GUI is written in XML code. Depending on XML tag qSlicerCLIModuleWidgetPrivate class function is called and dynamically combo box is created. We wanted to add some default text to combo box …

---

## [How to change the size of module area?](https://discourse.slicer.org/t/how-to-change-the-size-of-module-area/13498)

<div class="topic-metadata">

**Author:** [@xudong\_song](https://discourse.slicer.org/u/xudong_song)\
**Replies:** 0\
**Last updated:** [September 16, 2020, 3:54am UTC](https://discourse.slicer.org/t/how-to-change-the-size-of-module-area/13498 "2020-09-16T03:54:05Z")

</div>

Hello there, I would like to change the outlook of the slicer. How can I change the size of the module area, I want it to keep a small width. what kind of layout in the “main view area” and “the module area” ?

---

## [How to press qtButton?](https://discourse.slicer.org/t/how-to-press-qtbutton/13947)

<div class="topic-metadata">

**Author:** [@aldoSanchez](https://discourse.slicer.org/u/aldoSanchez)\
**Replies:** 3\
**Last updated:** [October 9, 2020, 7:24pm UTC](https://discourse.slicer.org/t/how-to-press-qtbutton/13947 "2020-10-09T19:24:14Z")

</div>

Hi today I’m trying to press a button by code. and i know the name of the object is: setupLightkitButton i all ready try this: qt.QPushButton(‘setupLightkitButton’).click() qt.QPushButton(‘setupLightkitButton’).a…

[Next page](https://discourse.slicer.org/tag/qt/65.md?match_all_tags=true&page=1&tags%5B%5D=qt)
