For my project, I wish to have a toggle button. After much research I found this post. toggle-switch-in-qt
I implemented the code of the third post on the link above.
This code works correctly. By cons I do not understand how can we add QLabel for the two states of the toggle button? Would anyone have an idea to do this operation?