I dynamically display content in my application (page objects and buttons). I’ve found that in order to show button presses I have images showing the button in 2 different states (pressed and not). I use the pressed and released signals to show these states and things are working fine. I’ve noticed that at times when I update an object during execution (label for instance) or update a layout (refresh layout) on the page (usually nested) the code updates the label or layout but the screen doesn’t show the change.
The things I’ve used to resolve these problems is .show() for the label or for the layout I’ve used a QTimer oneshot to delay execution for a short period. Why do I need these things ? Is this like a Javascript Promises or Callbacks where you have to hold up code for a bit or execution is faster than screen refreshes ?