How to structure qml app with several canvas/screens



  • Hi everyone,

    i am still quite a beginner with qt and therefore need some advice about how to structure a program.

    Goal:
    Slideshow for images and videos using QML

    Functions:

    • display images with nice transitions between them
    • display panoramic images, by automatically panning slowly from left to right
    • display videos (no sound)
    • overlay menu that can be hidden

    Questions:
    i think i know roughly, how to create the single functions, but

    • how do i switch between the functions?
    • Do i only change the visibility of each element to zero when i am not using it? I think that's getting quite messy, once i have lots of elements
    • Or can i define somehow a kind of canvas or screen and then switch between them? How?
    • Can i or do i have to dynamically load/unload these canvas / screens?

    Thanks a lot for any comment.

    Ben



  • You can dynamically load and unload content. I use a mouse area that triggers a javascript function. That function uses "Qt.createComponent" to load a qml file.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.