How to change height for editing mode for qMRMLSubjectHierarchyTreeView

When I am editing row value in qMRMLSubjectHierarchyTreeView it’s looks very small. How can I change height? In not editing mode, rows looks ok.
image

I’ve never seen anything like this. Have you edited the screenshot in some way or this is how the tree appears for you? Does the purple rounded rectangle appears when you double-click on an item? What operating system are you using? Have you installed any extension or done any customization in any way?

We are using Windows 10 (64 bit) v 22H2. Purple border on rectangle our style for edit mode (double click). We did not make any changes to slider. The screenshot reflect how tree appears to me.

I suppose then that you customize the GUI using QSS. Probably the padding or border is set to too high (or not set but should be). I suggest referring to the QSS guide at this point instead of the Slicer community as it is a purely Qt issue
https://doc.qt.io/qt-5/stylesheet-reference.html

If my assumption is wrong please give us more details.

1 Like