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 way to create screens?
Forum Updated to NodeBB v4.3 + New Features

Best way to create screens?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 251 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.
  • K Offline
    K Offline
    kangarooYellow
    wrote on 18 Aug 2019, 16:30 last edited by
    #1

    Hi,

    I am new to QT and i am trying to design the GUI of my application.

    How should i create a screen? in C++ or QML?
    Should each screen be a QML file and i load the correct QML file based on a button click or event?
    If using the StackView, does it not take up alot of memory having all the screens in my application stack ontop of each other and in memory? Imagine my app has 30 screens.

    Ideally i would like to create all my screens in QML as well as all the button interactions. Example, button A clicked takes you to Screen A, button B clicked takes you to Screen C.

    T 1 Reply Last reply 18 Aug 2019, 17:19
    0
    • K kangarooYellow
      18 Aug 2019, 16:30

      Hi,

      I am new to QT and i am trying to design the GUI of my application.

      How should i create a screen? in C++ or QML?
      Should each screen be a QML file and i load the correct QML file based on a button click or event?
      If using the StackView, does it not take up alot of memory having all the screens in my application stack ontop of each other and in memory? Imagine my app has 30 screens.

      Ideally i would like to create all my screens in QML as well as all the button interactions. Example, button A clicked takes you to Screen A, button B clicked takes you to Screen C.

      T Offline
      T Offline
      Tom_H
      wrote on 18 Aug 2019, 17:19 last edited by
      #2

      @kangarooyellow My vote is to use QML. I just finished a project using it and I was very happy with it. Yes, one QML file per screen. Having 30 screens stacked on top of each other is a bad design. Think of a better way. There's a lot to learn, not just with the GUI but with interaction with your C++ code. Take a look at some examples. Good luck.

      1 Reply Last reply
      0

      1/2

      18 Aug 2019, 16:30

      • Login

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