We need widgets module, but not declarative module.

Widgets module is needed for QDesktopWidget.