qt - Qt5 changing widget as part of qml -


i have screen containing frame (as 1 qml file) - content of stored separate widgets in separate files. looks like:

//screen qml myscreen {   ...   //other stuff    widget1   {     visible: iswidget1active     ...   }    widget2   {     visible: iswidget2active     ...   } }  //widget1 qml widget1 {   //label     //button }  //widget2 qml widget2 {   //label   //button1   //button2   //button3 } 

the widgets cover same area (but have different content) , want show 1 of them in same time. of course can change visibility checking widget should currenlty active i'm not sure it's correct approach. want have support more 2 widgets. in case screen qml bigger , have more conditions.

is possible switch widget qml instead of setting visibility each widget?

you can use stackview, if want have feature full navigation between widgets. approach use listview or view item show single delegate each time.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -