Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. MVC best practices in QML?
Qt 6.12 LTS is out! See what's new in the release blog

MVC best practices in QML?

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 2.1k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on 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 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 last edited by
        #3

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

        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
        • Unsolved