[qt-components] Remove dependencies on QtWidgets