I need to create a toggle switch which resembles android style On/Off-toggle switch in Qt/C++ and not in Qml. Also, I don't want to use radio buttons or QPushButton with toggle properties as it's a bit old style. Can somebody kindly help me in giving the idea for doing the same.
NB: Pls find the sample pic below.
Thank you.

Android_Toggle_Switch.png