fixed Qt5 compat

see scikit-image#1316
I am also not a fan of `has_qt` sometimes being a bool and sometimes and int.  Just because we _can_ be sloppy does not mean we _should_ be sloppy.

Things like this seem clear now and are valid python etc, but will make some one very angry for about 20 minutes in a few years.