Fix Build error with Qt 5

Use QtWidgets headers instead of QtGui.