Fix error when compiling on Qt