Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to structure qml app with several canvas/screens
Forum Updated to NodeBB v4.3 + New Features

How to structure qml app with several canvas/screens

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 921 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    ben80
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jsprenkle
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved