There is NO documented way of removing that shadow. Pretty crappy, especially for a very configurable toolkit like Qt.
Anyways, here's a workaround. It'll set the proper global palette rules that will apply this fix to all the buttons.
The first line sets the color of the disabled text, the second - removes the etching.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QPalette pal = QApplication::palette(); | |
pal.setColor(QPalette::Disabled, QPalette::Text, QColor(80, 80, 80)); | |
pal.setColor(QPalette::Disabled, QPalette::Light, QColor(0, 0, 0, 0)); | |
QApplication::setPalette(pal); |