you import QtCore and QtGui twice