I still have no idea why #SVG icons are showing up blurry in #HiDPI on tiles and in the All Apps list until they're force-reloaded either by resizing the tile or scrolling enough, and I tried to use this file to fix it after trying to fix it myself when it seemingly broke in a #QtQuick update a few versions ago. At this point I'm wondering if I should just ditch QtQuick because blurry icons are really annoying, and the #PinePhone is likely to be used in HiDPI.

1/2

#Qt6 #programming #bug

Not the first time a #Qt6 update broke something, because taps in the #QtWayland compositor surfaces under #HiDPI worked at some point, then an update broke it so they're in the wrong spot and I have no idea if it's something I was doing wrong or if it's a regression that's still there almost a year later.

2/3 oops

#programming #bug #regression #QtQuick #Qt6

Hoping #KDE will fix this image scaling issue with #KDE6, and if so, I'll use whatever it is that fixes it, even if it's part of #Kirigami.

https://github.com/219-design/qt-qml-project-template-with-ci/blob/master/src/lib_app/qml/ImageSvgHelper.qml

3/3

#programming #bug #QtQuick

qt-qml-project-template-with-ci/src/lib_app/qml/ImageSvgHelper.qml at master · 219-design/qt-qml-project-template-with-ci

Template for a Qt/QML application with batteries included: GitHub C.I. for your QML app; automated gui testing with Xvfb; automatic code-format checks and more. Compiles for Desktop and Mobile (Lin...

GitHub
Ok, so I've figured out a temporary solution where the icons on each tile are resized to 256 and back when going between the All Apps list and the main tile area. For now I also have this code in the empty area around tiles, but that'll be removed as it's not obvious. Still isn't automatic like I'd prefer, but at least it can look better.
Ope, I got a timer to work for automatically forcing icons to resize themselves and its restart() function is called at the end of the Component.onCompleted block where I add the tiles (outside the If statement checking if we have any to add). This means there's no need to do anything manual to get at least most of the icons to look nice at HiDPI, just takes a few moments to show them as I decided to hide them until they're the correct size (otherwise they'd look weird).
Just to be safe, I moved the timer restart thing into the If statement so it only runs if there are tiles to load. It's really nice looking at properly-scaled icons, even if it requires waiting a bit on startup.