QDoc: Document where \snippet looks for files


Authors sometimes assume a relative \snippet path resolves against
sourcedirs, the same tree their documented code lives in. It doesn't.
QDoc searches only the exampledirs and imagedirs trees, so a snippet
kept alongside the source it illustrates is silently unreachable, and
the manual says nothing to correct the assumption.

This change updates the QDoc manual by stating which qdocconf variables
control snippet resolution. It also notes that sourcedirs and headerdirs
are never searched, and explains that the first matching file wins with
directories consulted in lexicographic order so one file can shadow
another. The same note covers \quotefile and \quotefromfile, which
resolve their files the same way.

Task-number: QTBUG-130914
Change-Id: Ib9514c23add140939e3252a9fcb264e19d091b4d
Reviewed-by: David Boddie <david.boddie@qt.io>
commit09143544fd50a95846a31aaa1206f28358288031
parent3c05458f3322cdeca9b8067b7ce6ad8772ee4dd2
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeTue, 28 Jul 2026 12:08:22 +0000