I have made a QML extension with QDeclarativeExtensionPlugin and QDeclarativeItem, when I inserted the component into QML and switch to Design mode in QtCreator, it show the error message "Type dump of QML plugin in xxxx failed. Errors....".
I have trace into the code, it seems that the bug of qmldump.exe, the dump result cannot be passed to QtCreator.
in command line, I enter:
qmldump COMPONENTS 1.0 [return]
The dump result looks well, but when I try to:
qmldump COMPONENTS 1.0 > result.txt
The content of result.txt is empty!
I trace into the qmldump.exe, and add a fflush(stdout) after std::cout, and the problem is gone. I think it should be the bug of qmldump