SUMMARY *** It's impossible to compile kdenlive without qtdeclarative being compiled without widgets USE flag. I'm not sure if this is the correct place to report this issue. *** STEPS TO REPRODUCE 1. compile qtdeclarative disabling widgets flag 2. qtdeclarative won't build and install the file: /usr/lib64/cmake/Qt5QuickWidgets/Qt5QuickWidgetsConfig.cmake 3. kdenlive will fail to compile OBSERVED RESULT CMake Error at /usr/lib64/cmake/Qt5/Qt5Config.cmake:28 (find_package): Could not find a package configuration file provided by "Qt5QuickWidgets" with any of the following names: Qt5QuickWidgetsConfig.cmake qt5quickwidgets-config.cmake Add the installation prefix of "Qt5QuickWidgets" to CMAKE_PREFIX_PATH or set "Qt5QuickWidgets_DIR" to a directory containing one of the above files. If "Qt5QuickWidgets" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:57 (find_package) EXPECTED RESULT kdenlive to successfully compile/emerge SOFTWARE/OS VERSIONS Windows: n/a macOS: n/a Linux/KDE Plasma: n/a (available in About System) KDE Plasma Version: n/a KDE Frameworks Version: n/a Qt Version: 5.15.2 ADDITIONAL INFORMATION Reddit thread where I helped the user solve this problem: https://www.reddit.com/r/Gentoo/comments/si179u/kdenlive_failed_to_compile/
PS: sorry, english ain't my first language. I meant that it's impossible to compile kdenlive **with** qtdeclarative being built without widgets USE flag. As in, kdenlive needs qtdeclarative to be built with that flag.
Kdenlive uses QQuickWidget, which requires qtdeclarative to be built with widgets support