Using QString instead of C-style string to deal some filename judge