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. MVC best practices in QML?
Forum Updated to NodeBB v4.3 + New Features

MVC best practices in QML?

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.5k 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
    magnuslu
    wrote on 13 Dec 2013, 06:54 last edited by
    #1

    Hi,

    I'm evaluating the use of Qt to port the UI of a somewhat dated web application optimized for desktop to mobile devices (Android/iOS). I should be able to reuse most of the data layer from the old system. I'm confident I can get a great looking UI using QML which can take full advantage of the mobile platform. My concern is how to implement the navigation between all the screens (pages/states). I will have some 30 or more screens with non-linear navigation between them. It will be possible, with some restrictions, to jump a bit from one to the other. Switches could be triggered either by gestures, buttons and potentially other criteria. I will prepare a state diagram.

    Is there a framework, or an example to show how such a controller could be built in QML? Most examples I've found so far are limited to one or maybe two screens, so they don't show a pattern of best practices that I can build upon.

    Thanks,

    Magnus

    1 Reply Last reply
    0
    • V Offline
      V Offline
      Vincent007
      wrote on 13 Dec 2013, 16:39 last edited by
      #2

      try "Quick forecast":https://qt.gitorious.org/qt-labs/weather-app

      1 Reply Last reply
      0
      • V Offline
        V Offline
        Vincent007
        wrote on 14 Dec 2013, 05:50 last edited by
        #3

        use "StackView":http://qt-project.org/doc/qt-5/qml-qtquick-controls-stackview.html

        1 Reply Last reply
        0

        1/3

        13 Dec 2013, 06:54

        • Login

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