Graphics tablet misaligned with UI when using Krita on 4K screen with QT_SCREEN_SCALE_FACTOR

I recently bought a 4K monitor to use with Krita and I need the interface to be scaled up a bit. Since I run Linux (Manjaro KDE edition) I don’t have per-screen scaling and I can’t use global scaling since everything on my 1080p displays then becomes incredibly large.

Instead I found out that Krita can be launched as env QT_SCALE_FACTOR=1.5 krita to scale the UI to my liking. This looks great and works great when I use my mouse.

The problem is that when I use my tablet (Wacom Intuos S) when Krita is scaled, I can’t use the UI since the “active area” of UI elements isn’t where the button is. As an example, in the following image I’ve used my tablet to position the pointer, which causes the “resolution” field to highlight, since Krita seems to think that is where the pointer is. If I instead move my mouse, everything works as expected. Also note that actually drawing on the canvas does work correctly with the tablet.

In KDE’s tablet settings I’ve tried Map to Screen to just the 4K monitor, to the entire desktop, and Map to Cursor. They all have the same problem while Krita is scaled with QT.

Does anyone know what I could do to resolve this issue, or another way I can scale Krita on my 4K monitor with my tablet?

It might be easier to just make the font bigger in Krita’s settings (available from Krita 5), and perhaps the toolbox buttons. Display scaling, X11 and Qt don’t really work together

1 Like

It may also help to go to “Settings” >> “Configure Krita” >> “General” in the “Window” tab and enable the “Enable Hi-DPI support” setting, in the same tab where you can adjust the font size.

Michelist

Increasing the font sizes works very well! I had just installed Krita 5 and the first thing I did to try to solve the problem was to go back to Krita 4, but I’m very excited to use 5!

For the record in case someone else is in this situation, here is everything I did:

  • Settings → Configure Krita → General → Window → Increased the font size
  • Settings → Configure Krita → General → Window → Enable Hi-DPI support (I think this might only do something if I were to have global scaling on in my OS, but I might in the future!)
  • Settings → Configure Krita → Popup palette → Increased sizes to maximum (a bit weird I can’t type in a value bigger than 550px, but the maximum is still a good size)
  • Press the hamburger menu (three horizontal lines button) on the dockers that have it (layer menu, brush presets, etc.) and increase icon size.
  • Right click one of the toolbox buttons → Select a bigger icon size.

The only thing I haven’t been able to do that I would have liked to is increase the height of the toolbar, but it’s not too bad the way it is.

Some things look slightly weird since there are some icons and text (like various settings buttons on the dockers) that doesn’t increase in size, but I don’t really mind since I rarely need those anyways. (Though hopefully Wayland can fix some of that scaling nonsense in the future!)

Thank you so much for the help! I love Krita!

Did you try to restart your PC after changing the UI scaling? I just recently had the same issue on Windows, without restart even the Windows icon was weird, and there were other weirdnesses all across the system, including the issue with the tablet, and restarting helped.

1 Like

I did for good measure! And it is needed for global OS scaling (or at least re-logging)! However, since I can’t use OS scaling, and instead have to apply scaling specifically to Krita each time it starts, I don’t think restarting my PC really affects that.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.