A QPushbutton was added and made checkable using setCheckable property, I connected the signal checked(bool) to a slot that is changing the icon of the button when it is clicked.
Left to right: Import Network button, Play/Pause and Step one second. |
When the simulation is running, the play button is transformed to pause. |
In the next blog posts. I'll add a menu, status bar and a tool bar to the program. Using that tool bar, the user should be able to hide and show the different dock widgets.
Icon Credits: https://icons8.com/
No comments:
Post a Comment