You can always subclass QLineEdit and reimplement its paint event. You can check the class's source code to see how QLineEdit draws itself, it will probably take you some time but at the end you should be able to identify a call that you can override (e.g. in the style) to get the desired behavior.