changed some QtGui classes to QtWidgets, since it was moved in Qt5