remove usePainter() and fix Qt5 build error

DO NOT use QPainter for native painting by default.
QPaintEngine::getDC() is removed in Qt5
build error: Wid cast to HWND in Qt5