QSvgIOHandler: fix format detection when loading triggers it


When reading from a device without a file name, the format is
determined by probing the contents in canRead(). load() did that only
after marking the load as attempted, so canRead() returned early
without probing, and format() stayed empty if e.g. size() or
imageCount() triggered loading first.

Amends 6b0aba5544c4e2c9015a691a7ad669b3d6c94cfe.

Fixes: QTBUG-151324
Pick-to: 6.12
Change-Id: I6e9dc4ecd71ef03ecfeca7f8827e51b14f3d30cd
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
commit4e3cf3676c30d3dd03f954b439a90b0093482a3d
parentb3702f7933a86e803cc71276ed32f614886f59f1
authorVladimir Belyavsky <belyavskyv@gmail.com>
committerVladimir Belyavsky <belyavskyv@gmail.com>
commit timeMon, 12 Oct 2026 07:40:59 +0000