"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 _______________________________________________ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development