Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-116141

preference system for QImageIOPlugin

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.6, 6.7, dev
    • Image formats
    • None
    • All

    Description

      I created a QImageIOPlugin for SVGs that uses Resvg instead of QSvg but unfortunately it cannot be installed side by side with the qsvg plugin because there appears to be no system through which to express that the resvg plugin should be preferred over the qsvg plugin.

      From the docs:
      "If several plugins support the same capability, Qt will select one arbitrarily."

      Possible trivial solutions:

      • sort the plugins by name, pick first match
      • add a key to the json blob that expresses explicit preference over qt plugins (that leaves competing third party plugins out in the rain though)
      • add a score key to the json blob, pick the highest scored plugin (that may just result in third party plugins picking an insanely high score to outscore each other )

      https://invent.kde.org/sitter/qresvgimageiohandler

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            apachelogger Harald Sitter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes