Expose preedit as property and fix window flags to include Qt::Window