added the QT+=widgets to include the widgets