Will this work on PyQt5? And will it work if my UI files are Main Window type instead of dialog?
I wrote a question yesterday and you showed it might be duplicate so i came to check your answer out. Just tell me will it work if all my files are Main Window? Because it took me hours to design all the windows and would be a headache if i have to rebuild it again my making it a dialog PS: I am talking about question number 53899209
@mj2266 I have tested my solution and it works correctly for QMainWindow. I recommend that before publishing an issue verify that the problem exists but imagine all repositories were saturated by this type of issues.
So you mean energy.ui, fan.ui, home.ui,status.ui all of them are QMainWindow and not QWidget?
@mj2266 In the example that I have provided in my repository they are QWidget but as a result of your question I have also tested it by changing the QWidget to QMainWindow and it works.
Hey man! Thanks it worked! I followed all the steps you posted on StackOverFlow and it worked. Initially i was stuck because QtDesigner didn't had option to promote a QMainWindow but i Promoted it as a QWidget and it worked! I just have one another doubt: Suppose energy.ui has a button inside it. I want to use that button to change the Index of Stacked Widget. How do i get around it? I tried searching on Google but I am not getting any solution. Maybe I didnt get my keywords right. Anyway can you help?
Hey I found solution for my last doubt. Thank you so much for helping!