[Development] Fw: How to do deprecation

Jaroslaw Kobus Jaroslaw.Kobus at qt.io
Thu Jul 21 09:51:28 CEST 2022


"So instead of

#if QT_DEPRECATED_SINCE(6, 4)

    QT_DEPRECATED_VERSION_X_6_4("Use size() or length() instead.")

    inline qsizetype count() const { return d.size; }

#endif

You’d have:

    QT_DEPRECATED_METHOD(qsizetype count(), 6, 4, "Use size() or length() instead.”)
"

Hi,

it would be really cool to have it like this. However, just joining QT_DEPRECATED_SINCE with QT_DEPRECATED_VERSION_X_Y_Z would also be a small and simple step forward.

Jarek





More information about the Development mailing list