Skip to content

use QtSvg

Beyß, Martin requested to merge svg_opt into qt6
  • instead of writing Text, make a closed path
  • this way the svg is svg tiny compatible
  • In this way we can use QtSvg, which renders much quicker
  • Furthermore, now the gui works in docker under ubuntu 22.04 (likely something with OpenGL)

With this for Qt6 the following is required

  • qt6-base-dev
  • qt6-tools-dev
  • libqt6svg6-dev
  • libgl1-mesa-dev

For Qt5 this is

  • qtbase5-dev
  • qttools5-dev
  • libqt5svg5-dev
  • libgl1-mesa-dev

On the cairo side this means replacing show_text with text_path.

I also modified the zoom handling a bit. Now the mouse wheel zooms, and the zoomed in image can be dragged. This makes the code a bit cleaner. Also for some reason the key events did not come through.

Edited by Beyß, Martin

Merge request reports

Loading