QDoc: Document autolink resolution for \relates


The \relates command moves documentation from one class's
reference page to another. Users who write cross-references
without fully qualified names may find that autolinks break
silently after the move, since name resolution uses the
destination page's context rather than the original class's
context. This behavior isn't obvious from the existing
documentation and leads to confusion when previously working
links stop resolving.

Adding a note to the \relates documentation clarifies this
context-switching behavior so authors can anticipate and
avoid broken cross-references from the start.

Task-number: QTBUG-145807
Change-Id: Ic26c3ca39133c89661924a5d785e74a333e70aee
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit0697457074d38213955ab3d10350b963a63c604c
parent4a210acd7f98881c722f52735a62041d55cfe452
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeWed, 15 Apr 2026 15:37:31 +0000