Created a class derived from QWidget