Reactivate hardware acceleration in the project settings, and remove the setLayerType calls, which don't look necessary anymore