Image Toggling
Solved
General and Desktop
-
I'm brand new to QML and was wondering if you could toggle between images using a ComboBox. And if so how you would accomplish it. Basically, every choice of the combo box would trigger a different image, but the images need to all be in the same place.
Thanks!
-
ComboBox { id: comboBox .... } Image { source: { switch( comboBox.currentIndex ) { case 0: return "path/to/image0.png" case 1: return "path/to/image1.png" ... } } }
-
@raven-worx Thanks for all the help!