Because the Qt Creator on Windows is compiled by Microslft VC and the custom widget is compiled by MinGW.
the compiler is not same. I advice you compile Qt Creator by MinGW.