Fixed error with QSizePolicy

Changed QtGui.QSizePolicy to QtWidgets.SizePolicy as the namepace has changed from Qt4 to Qt5