add toObject to QuickItem wrapper
Fixed a bug that failed to set parent if parent is a window object