# The layout is inconsistent

**URL:** <https://discourse.slicer.org/t/the-layout-is-inconsistent/20677>\
**Category:** Development\
**Created:** [November 18, 2021, 8:52am UTC](https://discourse.slicer.org/t/the-layout-is-inconsistent/20677 "2021-11-18T08:52:06Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![LuPingChina](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lupingchina/32/13183_2.png) [@LuPingChina](https://discourse.slicer.org/u/LuPingChina)\
**Post date:** [November 18, 2021, 8:52am UTC](https://discourse.slicer.org/t/the-layout-is-inconsistent/20677/1 "2021-11-18T08:52:06Z")

</div>

I have a question where does the interface code of the dicom module be in the project and why can’t I find it?Also why is the layout of the retrieval form in the compiled 4.13 version dicom module be different from that in the release and how should I debug the code.See the picture.

 ![001](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/9/79c3b4160310a9c4af988befaa6e95556cd90bd8.png)  
 ![002](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/2/92f37254a92672e552672c9f40dafb4d9eddbeb6.png)

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [November 18, 2021, 1:16pm UTC](https://discourse.slicer.org/t/the-layout-is-inconsistent/20677/2 "2021-11-18T13:16:18Z")

</div>

Slicer uses commontk for much of the dicom infrastructure: [Commontk](http://www.commontk.org/index.php/Main_Page)

---

<div class="post-metadata">

**Author:** ![LuPingChina](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lupingchina/32/13183_2.png) [@LuPingChina](https://discourse.slicer.org/u/LuPingChina)\
**Post date:** [November 19, 2021, 2:09am UTC](https://discourse.slicer.org/t/the-layout-is-inconsistent/20677/3 "2021-11-19T02:09:01Z")

</div>

Thanks for the answer.Although I know if dicom is a module from ctk it cannot explain why the interface layout of my compiled version is not consistent with the official release version

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [November 19, 2021, 8:31pm UTC](https://discourse.slicer.org/t/the-layout-is-inconsistent/20677/4 "2021-11-19T20:31:38Z")

</div>

The DICOM interface can not be found directly in the Slicer source, but in the [Commontk sources](https://github.com/commontk/CTK). You probably need to create a fresh Slicer fork and build that to receive the latest DICOM interface, which indeed improved in important detail: being able to receive selected series from studies.

If that does not answer your question please describe what you want to achieve.

---

<div class="post-metadata">

**Author:** ![LuPingChina](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lupingchina/32/13183_2.png) [@LuPingChina](https://discourse.slicer.org/u/LuPingChina)\
**Post date:** [November 20, 2021, 1:24am UTC](https://discourse.slicer.org/t/the-layout-is-inconsistent/20677/5 "2021-11-20T01:24:54Z")

</div>

I mean, why is the interface of the software I compiled inconsistent with the interface of the officially released version? Is it because of the version problem or where I have a problem

---

<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:** [November 20, 2021, 3:59am UTC](https://discourse.slicer.org/t/the-layout-is-inconsistent/20677/6 "2021-11-20T03:59:07Z")

</div>

Slicer Preview Releases are built from the latest version on the master branch every night. If you build the same version then you will get exactly the same user interface.

---

<div class="post-metadata">

**Author:** ![LuPingChina](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lupingchina/32/13183_2.png) [@LuPingChina](https://discourse.slicer.org/u/LuPingChina)\
**Post date:** [November 20, 2021, 10:54am UTC](https://discourse.slicer.org/t/the-layout-is-inconsistent/20677/7 "2021-11-20T10:54:07Z")

</div>

![QQ图片20211120185227](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/0/60e40093cc50f75498aa0f734d6c849671e17518.png)  
It’s not my problem, it’s the version

---

<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:** [November 20, 2021, 1:38pm UTC](https://discourse.slicer.org/t/the-layout-is-inconsistent/20677/8 "2021-11-20T13:38:46Z")

</div>

Can you copy/paste here the application log (menu: Help → Report a bug)?

---

<div class="post-metadata">

**Author:** ![LuPingChina](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lupingchina/32/13183_2.png) [@LuPingChina](https://discourse.slicer.org/u/LuPingChina)\
**Post date:** [November 20, 2021, 4:06pm UTC](https://discourse.slicer.org/t/the-layout-is-inconsistent/20677/9 "2021-11-20T16:06:59Z")

</div>

[DEBUG][Qt] 21.11.2021 00:05:12 [] (unknown:0) - Session start time …: 2021-11-21 00:05:12  
[DEBUG][Qt] 21.11.2021 00:05:12 [] (unknown:0) - Slicer version …: 4.13.0-2021-11-19 (revision 30421 / 9f03a47) win-amd64 - installed release  
[DEBUG][Qt] 21.11.2021 00:05:12 [] (unknown:0) - Operating system …: Windows / Professional / (Build 17763, Code Page 936) - 64-bit  
[DEBUG][Qt] 21.11.2021 00:05:12 [] (unknown:0) - Memory …: 24410 MB physical, 33626 MB virtual  
[DEBUG][Qt] 21.11.2021 00:05:12 [] (unknown:0) - CPU …: GenuineIntel , 12 cores, 12 logical processors  
[DEBUG][Qt] 21.11.2021 00:05:12 [] (unknown:0) - VTK configuration …: OpenGL2 rendering, TBB threading  
[DEBUG][Qt] 21.11.2021 00:05:12 [] (unknown:0) - Qt configuration …: version 5.15.2, with SSL, requested OpenGL 3.2 (compatibility profile)  
[DEBUG][Qt] 21.11.2021 00:05:12 [] (unknown:0) - Developer mode enabled …: no  
[DEBUG][Qt] 21.11.2021 00:05:12 [] (unknown:0) - Application path …: C:/ProgramData/NA-MIC/Slicer 4.13.0-2021-11-19/bin  
[DEBUG][Qt] 21.11.2021 00:05:12 [] (unknown:0) - Additional module paths …: (none)  
[DEBUG][Python] 21.11.2021 00:05:13 [Python] (C:\ProgramData\NA-MIC\Slicer 4.13.0-2021-11-19\lib\Slicer-4.13\qt-scripted-modules\SubjectHierarchyPlugins\AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: Annotations  
[DEBUG][Python] 21.11.2021 00:05:14 [Python] (C:\ProgramData\NA-MIC\Slicer 4.13.0-2021-11-19\lib\Slicer-4.13\qt-scripted-modules\SubjectHierarchyPlugins\AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: SegmentEditor  
[DEBUG][Python] 21.11.2021 00:05:14 [Python] (C:\ProgramData\NA-MIC\Slicer 4.13.0-2021-11-19\lib\Slicer-4.13\qt-scripted-modules\SubjectHierarchyPlugins\AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: SegmentStatistics  
[DEBUG][Qt] 21.11.2021 00:05:14 [] (unknown:0) - Switch to module: “Welcome”  
[DEBUG][Qt] 21.11.2021 00:05:27 [] (unknown:0) - Switch to module: “DICOM”  
[CRITICAL][Stream] 21.11.2021 00:05:27 [] (unknown:0) - Database folder does not contain ctkDICOM.sql file: C:/Users/Administrator/Documents/SlicerDICOMDatabase

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [November 20, 2021, 4:11pm UTC](https://discourse.slicer.org/t/the-layout-is-inconsistent/20677/10 "2021-11-20T16:11:16Z")

</div>

> [@LuPingChina](#):
>
> [CRITICAL][Stream] 21.11.2021 00:05:27 (unknown:0) - Database folder does not contain ctkDICOM.sql file: C:/Users/Administrator/Documents/SlicerDICOMDatabase

This indicates you need to pick a different database directory (this one may not be writable).

---

<div class="post-metadata">

**Author:** ![LuPingChina](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lupingchina/32/13183_2.png) [@LuPingChina](https://discourse.slicer.org/u/LuPingChina)\
**Post date:** [November 20, 2021, 4:13pm UTC](https://discourse.slicer.org/t/the-layout-is-inconsistent/20677/11 "2021-11-20T16:13:32Z")

</div>

The problem with this database directory will not affect the layout of the UI interface

---

<div class="post-metadata">

**Author:** ![LuPingChina](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lupingchina/32/13183_2.png) [@LuPingChina](https://discourse.slicer.org/u/LuPingChina)\
**Post date:** [November 20, 2021, 5:58pm UTC](https://discourse.slicer.org/t/the-layout-is-inconsistent/20677/12 "2021-11-20T17:58:45Z")

</div>

![Form_224](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/f/af7452d24dc5250ed547a69fe9a5df4bc5287a8a.png)

I would like to ask, where can I modify this interface? I want to translate the interface into Chinese

---

<div class="post-metadata">

**Author:** ![LuPingChina](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lupingchina/32/13183_2.png) [@LuPingChina](https://discourse.slicer.org/u/LuPingChina)\
**Post date:** [November 20, 2021, 6:00pm UTC](https://discourse.slicer.org/t/the-layout-is-inconsistent/20677/13 "2021-11-20T18:00:07Z")

</div>

CTK contains DICOM components. What is the relationship between this and DCMTK

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [November 20, 2021, 6:33pm UTC](https://discourse.slicer.org/t/the-layout-is-inconsistent/20677/14 "2021-11-20T18:33:03Z")

</div>

The layout difference are because the current code reflects a fairly recent redesign that happened since the latest release was made.

> [@LuPingChina](#):
>
> CTK contains DICOM components. What is the relationship between this and DCMTK

You can read about this at the [commontk.org](http://commontk.org) site.

> [@LuPingChina](#):
>
> I would like to ask, where can I modify this interface? I want to translate the interface into Chinese

Did you see the response when you asked before?

> [@How to set the title and name of the module](https://discourse.slicer.org/t/how-to-set-the-title-and-name-of-the-module/20611/3):
>
> I want to translate the software interface into Chinese.

---

<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:** [November 22, 2021, 7:01pm UTC](https://discourse.slicer.org/t/the-layout-is-inconsistent/20677/15 "2021-11-22T19:01:55Z")

</div>

Commit [9f03a47ed9a6c8cae1b242bf45259b6925f2a75b](https://github.com/Slicer/Slicer/commit/9f03a47ed9a6c8cae1b242bf45259b6925f2a75b) is a very recent master version. That version uses this [CTK hash](https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_CTK.cmake#L78), which renders the Query/Retrieve dialog like this:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/c/1c7284d2f10dcc9c22d1190d602110679d2e6f18.png)

If your Query/Retrieve dialog looks like the old version that you showed above it means that your CTK version is older. You either have not rebuilt CTK since you updated it or you specified an older CTK version manually.

> [@LuPingChina](#):
>
> The problem with this database directory will not affect the layout of the UI interface

Appearance of the DICOM database tables (displayed columns, order of columns, column width, format, sorting, etc.) are stored in the database itself, so the database content actually affects the layout of the UI interface - but only inside the Patient/Study/Series table. The difference you see is due to using an older CTK version.
