- 
    Bug 
- 
    Resolution: Fixed
- 
    P1: Critical 
- 
    6.7.3, 6.8.0
- 
    None
- 
        
- 
        b772c53f5 (dev)
Component with MultiEffect can't be compiled to C++ using qmltc.
There is QML component that uses MultiEffect (it's not really necessary to have it as root item):
Effect.qml
import QtQuick.Effects MultiEffect { //... }
And project file that defines Qt Quick Extension plugin :
CMakeList.txt
...
qt_add_library(effect STATIC)
qt_add_qml_module(effect
    URI effect
    VERSION 1.0
    QML_FILES Effect.qml
    ENABLE_TYPE_COMPILER
)
target_link_libraries(effect PRIVATE Qt6::Quick Qt6::QuickPrivate)
...
Pay attention that ENABLE_TYPE_COMPILER is used to enable qmltc for Effect.qml.
When trying to build it I get the following error:
.qmltc/effect/effect.h:22:10: fatal error: 'private/qquickmultieffect_p.h' file not found #include "private/qquickmultieffect_p.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. ninja: build stopped: subcommand failed.
See standalone example  effect.zip 
 
| For Gerrit Dashboard: QTBUG-130588 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 600151,3 | Turn Qt::QuickEffects into a regular Qt module | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |