# Ubuntu 18.04 scaling small issues

**URL:** https://discourse.slicer.org/t/ubuntu-18-04-scaling-small-issues/2622
**Category:** Development
**Created:** [April 18, 2018, 12:44pm UTC](https://discourse.slicer.org/t/ubuntu-18-04-scaling-small-issues/2622 "2018-04-18T12:44:23Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Davide\_Punzo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/davide_punzo/32/66104_2.png) [@Davide\_Punzo](https://discourse.slicer.org/u/Davide_Punzo)
#### Post date: [April 18, 2018, 12:44pm UTC](https://discourse.slicer.org/t/ubuntu-18-04-scaling-small-issues/2622/1 "2018-04-18T12:44:23Z")

</div>

Hi all,

I personally don’t use 4k monitors, however I have just tried running Slicer in a 4k monitor on ubuntu 18.04 with the scaling option (recently added in ubuntu, 200%).

This is the result:

 ![Screenshot-20180418115402-3966x2107](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/0/404706492991cb2cd4568003535cd7d744cc662e.png)

it kind of works, but many icons are of different sizes and at the end it does not look too good. I was wandering if this is just an issue with ubuntu, how it does the scaling (it looks that it scales only the text and the relative GUI) or do you experience this also in windows? (on mac everything seems working on retina display with scaling).

---

<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: [April 18, 2018, 3:55pm UTC](https://discourse.slicer.org/t/ubuntu-18-04-scaling-small-issues/2622/2 "2018-04-18T15:55:56Z")

</div>

Thanks for testing this. If scaling has just been added to Ubuntu then probably it will take some time for Qt developers to take advantage of it and use it to optimize display.

---

<div class="post-metadata">

### Author: ![ihnorton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ihnorton/32/9_2.png) [@ihnorton](https://discourse.slicer.org/u/ihnorton)
#### Post date: [April 18, 2018, 4:43pm UTC](https://discourse.slicer.org/t/ubuntu-18-04-scaling-small-issues/2622/3 "2018-04-18T16:43:12Z")

</div>

I believe 18.04 ships with Wayland as an optional graphics stack, so if you have some time to rebuild, it might be worth enabling QtWayland in your qt build and then see if Slicer runs at all/better:

[https://wiki.qt.io/QtWayland#Run\_Qt\_applications\_as\_Wayland\_clients](https://wiki.qt.io/QtWayland#Run_Qt_applications_as_Wayland_clients)

(I’ve read somewhere that hidpi support is better in wayland – and X11 isn’t getting much effort there)

---

<div class="post-metadata">

### Author: ![Davide\_Punzo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/davide_punzo/32/66104_2.png) [@Davide\_Punzo](https://discourse.slicer.org/u/Davide_Punzo)
#### Post date: [April 19, 2018, 9:24am UTC](https://discourse.slicer.org/t/ubuntu-18-04-scaling-small-issues/2622/4 "2018-04-19T09:24:25Z")

</div>

> [@lassoan](#):
>
> Thanks for testing this. If scaling has just been added to Ubuntu then probably it will take some time for Qt developers to take advantage of it and use it to optimize display.

yeah, most likely will take at least another distro release in time for having the scaling sorted out in linux (at least in ubuntu).

> [@ihnorton](#):
>
> I believe 18.04 ships with Wayland as an optional graphics stack, so if you have some time to rebuild, it might be worth enabling QtWayland in your qt build and then see if Slicer runs at all/better:
> 
> [QtWayland - Qt Wiki](https://wiki.qt.io/QtWayland#Run_Qt_applications_as_Wayland_clients)
> 
> (I’ve read somewhere that hidpi support is better in wayland – and X11 isn’t getting much effort there)

I tried to use Wayland in ubuntu 17.10. However it was very bugged, specifically there was almost no support in the nvidia driver for wayland. On fresh install of ubuntu 18.04, the default is back to Xorg and I can’t even go back to wayland (maybe it is a bug, there is no gear option at login screen). It seems, unfortunately, we will have to wait at least the next release to have decent wayland support.

---

<div class="post-metadata">

### Author: ![brhoom](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/brhoom/32/1228_2.png) [@brhoom](https://discourse.slicer.org/u/brhoom)
#### Post date: [October 24, 2018, 9:59pm UTC](https://discourse.slicer.org/t/ubuntu-18-04-scaling-small-issues/2622/5 "2018-10-24T21:59:23Z")

</div>

I had the same issue. I changed the font size from Slicer settings.

---

<div class="post-metadata">

### Author: ![brhoom](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/brhoom/32/1228_2.png) [@brhoom](https://discourse.slicer.org/u/brhoom)
#### Post date: [October 28, 2018, 2:00pm UTC](https://discourse.slicer.org/t/ubuntu-18-04-scaling-small-issues/2622/6 "2018-10-28T14:00:32Z")

</div>

I did some testing today using Slicer binaries 8.4.1, 4.10.0 and nightly build 4.11.0 2018-10-23. It seems 4.8.1 adapts better to different monitors. I think the problem is related to Slicer version as I am using the same hardware, system, and settings. Is it possible to have the same behavior in recent versions?

---

<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: [October 28, 2018, 3:05pm UTC](https://discourse.slicer.org/t/ubuntu-18-04-scaling-small-issues/2622/7 "2018-10-28T15:05:12Z")

</div>

Slicer 4.8 used Qt 4.x and 4.10 uses Qt 5.x and there appears to be some debugging to do related to handling of various ‘retina’ and other multiresolution monitor support (the hardware and OS features are continuing to evolve, I’m sure). For example [my recent mac build is completely screwed up](https://discourse.slicer.org/t/building-on-mac-10-14-mojave/4554/2) with the latest Qt and macOS.

This will require some experimentation on the developer side, but also we’ll need a lot of people to test and provide feedback as we try different settings.

---

<div class="post-metadata">

### Author: ![brhoom](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/brhoom/32/1228_2.png) [@brhoom](https://discourse.slicer.org/u/brhoom)
#### Post date: [October 28, 2018, 3:25pm UTC](https://discourse.slicer.org/t/ubuntu-18-04-scaling-small-issues/2622/8 "2018-10-28T15:25:05Z")

</div>

> Slicer 4.8 used Qt 4.x and 4.10 uses Qt 5.x

Thanks for the info. I am happy to help with the testing. BTW, I tried building 4.10 with Qt4 and it seems there is no scaling 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: [October 28, 2018, 4:13pm UTC](https://discourse.slicer.org/t/ubuntu-18-04-scaling-small-issues/2622/9 "2018-10-28T16:13:58Z")

</div>

Qt4 did not do any scaling, therefore issues with high-DPI screens are completely different on Qt4 and Qt5.
