qt apps in hidpi looks tiny

Bug #1834061 reported by Carlos Pita
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
KeePassXC
Fix Released
Medium
Unassigned
snapd
Triaged
Medium
Unassigned

Bug Description

I use qt5ct to configure the font of qt apps. I also set:

export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_QPA_PLATFORMTHEME=qt5ct

Even with the auto scaling factor, the default qt font is tiny in my hidpi screen, so I have to increase its size from qt5ct from 10 to 11 or 12. Now, this is all lost in the isolated snap environment so, in brief, I'm unable to reasonably run *any* qt app. This is not a matter of fancy themes, it's a basic matter of accessibility.

This report was motivated by the inability to properly install and run Anki in Ubuntu 19.04:

1. The deb package is broken (there is a bug filed for this but unattended as of today).

2. The flatpak and the snap packages use a tiny font and it doesn't seem to be possible to change it.

I have posted about this in Ubuntu discourse too: https://discourse.ubuntu.com/t/please-do-not-use-snap-into-ubuntu-its-too-early/11206/97?u=memeplex

Revision history for this message
Carlos Pita (carlosjosepita) wrote :

Do you know of any workaround? Is it possible to somehow get qt5ct installed inside the snap runtime?

description: updated
description: updated
description: updated
description: updated
Revision history for this message
Carlos Pita (carlosjosepita) wrote :

I've been comparing snap and flatpak versions of Anki side to side.

The flatpak version is not perfect but get more things right than the snap one.

Look at the attached screenshot. On the left, we have the flatpak app, it clearly has scaled using the auto scaling factor, so my environment is taken into account; still there is no qt5ct support, which is easily spotted by looking at the menu font size: smaller than my system font size. On the right, the snap app is a mess: the window is too small, the menu is tiny, when the mouse pointer is over the menu it becomes a barely visible tiny dot, qt5ct support obviously isn't there, the fonts in the window itself (vs the menu) are large (I can't explain this difference).

Revision history for this message
Carlos Pita (carlosjosepita) wrote :
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I will relay this issue to the desktop team for analysis.

Changed in snappy:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Michael Stucki (mstucki) wrote :

Could this be the same problem as reported here?
https://github.com/keepassxreboot/keepassxc/issues/2815

Michael Vogt (mvo)
affects: snappy → snapd
Changed in keepassxc:
milestone: none → 2.6.0
importance: Unknown → Undecided
status: Unknown → New
importance: Undecided → Medium
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.