CMake: Propagate Quick and Widgets dependencies properly


The module installs public and private headers that depend on the
Quick and Widgets modules, so the build system needs to know to
propagate those dependencies to consumers of CanvasPainter, like
QtForPython.

Pick-to: 6.11
Change-Id: I03177449ed04003ecc3173e5d1548b608bb5665f
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
commitc9cddcca8e39251eb6d57db98cdb4e580bf0c2a7
parent13102f1750ebaf946de5475ebd2742d452eec210
authorAlexandru Croitor <alexandru.croitor@qt.io>
committerAlexandru Croitor <alexandru.croitor@qt.io>
commit timeFri, 20 Feb 2026 12:35:55 +0100