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. Best practice to develop multiple views QML/QT Application
Forum Updated to NodeBB v4.3 + New Features

Best practice to develop multiple views QML/QT Application

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 661 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.
  • A Offline
    A Offline
    andrew24wow
    wrote on last edited by
    #1

    Hello QT Forums!
    I am designing a desktop application to do many things! One involves an initial setup that you have to do once, while the rest is loaded in through AWS once that one time configuration is done. Coming from a web developer background, I am very used to creating new states throughout an application. I feel though I would be doing wrong and not following a standard that seems to have been set in QT/QML. Right now I am scaffolding my app to use multiple QML files with .ui.qml files in each one + passing the engine (QQmlApplicationEngine) as a raw pointer throughout my application. My application plans to have multiple different views and states based on data. What would be the right approach in this situation? one single QML with multiple windows to load? or am I on the right track?

    1 Reply Last reply
    0
    • Quang PhuQ Offline
      Quang PhuQ Offline
      Quang Phu
      wrote on last edited by Quang Phu
      #2

      @andrew24wow

      With me, I use SwipeView for swiping many views. You can try it, refer document here:
      https://doc.qt.io/qt-5/qml-qtquick-controls2-swipeview.html

      1 Reply Last reply
      1

      • Login

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