Modify reference to QtWidgets from QtGui on Mac OS.