For reasons that are out of my control a widget has to be rendered without antialiasing. It used to be painted all by in house written spaghetti code with render hints: