Deprecate QBinaryJson::toRawData() immediately in 6.12


This method is not safe, with no clear path to make it behave like in
Qt 5 again, see below. Deprecate it in favor of the memory-safe
alternative.

[ChangeLog][Deprecation Notice][QBinaryJson] Deprecated the toRawData()
method, because the returned memory has to be manually released by the
user, in stark contrast to Qt 5, where it remained owned by the object.
A backward-compatible alternative is to use toBinaryData() instead.

Task-number: QTBUG-149054
Pick-to: 6.12
Change-Id: I59f9e38bb6b4031320160ab2617802e8cc59b89e
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
commitf90f59e7447ff56fe816ac67370603a20de6b6f2
parent82604842849a66554baac66ef4f4a4469f62d848
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeMon, 17 Aug 2026 08:07:22 +0000