TODO: copy qt5 code to qt6
Tries to be closer to what Adobe does
This is what we currently do
this is what the new one would do