Solve Widget deprecated problem
add "#pragma warning"