doc: refactor C++ usage


The documentation mentions both a namespace that has been removed
and the use of the module include which should be avoided in user code.

This patch removes both, and adds CMake usage for the module.

Pick-to: 6.9 6.8
Change-Id: I378fbcaffa3edc5bdb94cdb7e05c9876b2418931
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
commitdc9bbbb64178c974d86c28225439bfeeacb0021b
parent028f64f898180e6318a2bcc352f8ee558935f760
authorSamuel Gaist <samuel.gaist@idiap.ch>
committerAxel Spoerl <axel.spoerl@qt.io>
commit timeTue, 11 Mar 2025 12:33:07 +0000