How to replicate the Windows 8 button 'shrink' on mouse 'press'

Is it possible to replicate the button press animation present in Windows 8 using QT? (An example can be found when clicking tabs in "PC Settings")

The mouse press/click has the effect of depressing the button, by shrinking it along with the live text. I would like to implement a similar action into a desktop windows application (compatible with XP/Vista/7/8).

Are we talking about QtWidgets or QtQuick here? In QML, it should be enough to simply scale the button down when it's being clicked, assuming it's anchored well. In Widgets it should still be doable, although a bit more challenging.