masmic
4th March 2016, 09:31
Hi to everyone,
I come from Java and I'm doing my first steps into QT. I'm using the designer to develop an app that has multiple windows and I have to navigate between them. To clarify a bit more this, I'm developing a kind of Car Infotainment System, where I have some buttons on the left, and each of these buttones sends me to different windows (media, radio, GPS, etc...)
My problem is that I don't know how to navigate between theses windows. After reading a lot, I've find that QStackedWidget could do the job, but this works using indexes and navigating left-right through the widgets. What I need is that each button I press sends me to a determided window.
In android, I would create a frameContainer ant the right side and then programmatically change the layout each time I press a button, but I'm very lost here, I don't find complete examples of how to do this.
So I'm not asking you a complete tutorial of how to doing this, just give me some steps of what to use and how to use it to be able to continue.
Thanks.
I come from Java and I'm doing my first steps into QT. I'm using the designer to develop an app that has multiple windows and I have to navigate between them. To clarify a bit more this, I'm developing a kind of Car Infotainment System, where I have some buttons on the left, and each of these buttones sends me to different windows (media, radio, GPS, etc...)
My problem is that I don't know how to navigate between theses windows. After reading a lot, I've find that QStackedWidget could do the job, but this works using indexes and navigating left-right through the widgets. What I need is that each button I press sends me to a determided window.
In android, I would create a frameContainer ant the right side and then programmatically change the layout each time I press a button, but I'm very lost here, I don't find complete examples of how to do this.
So I'm not asking you a complete tutorial of how to doing this, just give me some steps of what to use and how to use it to be able to continue.
Thanks.