QPushButton not loading next screen
-
@JonB There is a state machine in the code base that causes the button click to move to next state and load the menu screen.
-
@JonB There is a state machine in the code base that causes the button click to move to next state and load the menu screen.
@Vidya-H
Do you think anyone can help you from what you have chosen to say and show?No matter what, having a class
myWidget
know aboutMainWindow
is bad architecture, not to mention (apparently) using a static variable in that class which is surely not right. May or may not have something to do with your issue.As @jsulm writes, don't you think you should debug what happens in your code when the button is clicked?
-
@Vidya-H Did you do any debugging to see what is happening? Maybe your state machine is wrong?
-
@jsulm Since this issue came up only twice as of today, once on Qt5.3 and another time on Qt5.15 version of the code, it was not possible to debug further.
-
@Vidya-H
Do you think anyone can help you from what you have chosen to say and show?No matter what, having a class
myWidget
know aboutMainWindow
is bad architecture, not to mention (apparently) using a static variable in that class which is surely not right. May or may not have something to do with your issue.As @jsulm writes, don't you think you should debug what happens in your code when the button is clicked?
-
@JonB yes. I have added debug prints and trying to replicate the issue. If the issue replicates, I will share the logs.
-
@Vidya-H Did you do any debugging to see what is happening? Maybe your state machine is wrong?
If you have a bug, you need to debug, as @jsulm and @JonB rightfully say.
There is no need to run your app on a 512MB RAM hardware.
Just compile and reproduce it on your PC.
If you show parts of a strangely designed implementation and ignore the advice you get, please don't expect this forum to be of any help. -
If you have a bug, you need to debug, as @jsulm and @JonB rightfully say.
There is no need to run your app on a 512MB RAM hardware.
Just compile and reproduce it on your PC.
If you show parts of a strangely designed implementation and ignore the advice you get, please don't expect this forum to be of any help.@Axel-Spoerl Sure. However, I cannot run the application on the PC as there are several dependencies on the OS layers and several system calls. The issue is reproducing only on the target platform and it has happened only two times almost 3 weeks ago. Hence, I am awaiting and trying to replicate it with additional loggers added. Once I have the logs, I will share the details.
-
Just to manage expectations: The loggers will tell you what happened, not why it happened. If the application uses a static variable, the initialisation of which you won’t show, if it uses system calls and can’t be compiled on a desktop, there’s a severe architecture problem. Don’t expect more help here. Better fix the application.