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. Multi Screen QML App
Forum Updated to NodeBB v4.3 + New Features

Multi Screen QML App

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.8k 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.
  • M Offline
    M Offline
    mashinapetro
    wrote on last edited by
    #1

    Hello all!

    I have a problem with my app.
    My application consist of some screens, each of wich is "highweight" - he has a lot of media (images and video). My target platforms are tablets and phones.
    I have troubles with my app structure: i have some qml for screen, and main qml.
    I tried the following (for example)
    main.qml:

    @
    Item {
    id: root;

    Screen1 {
    id: screen1
    visible: true
    ...
    }
    
    Screen2 {
    id: screen2
    visible: false
    ...
    }
    
    Screen3 {
    id: screen3
    visible: false
    ...
    }
    

    }
    @

    I read, it's not right way, because in current moment some screens are unused.
    If i make it using Loader element, app is very slow in phone, I think, loading media is reason for it.
    Can you propose right app structure for this task?
    Thank you!

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

      How about using a "StackView":http://qt-project.org/doc/qt-5/qml-qtquick-controls-stackview.html ?
      You can load your Screens1 ... n whenever required.
      Here's a working "example":https://qt-project.org/doc/qt-5/qtquickcontrols-touch-example.html.

      157

      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