Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Whats the best way? Forms or projects?
Forum Updated to NodeBB v4.3 + New Features

Whats the best way? Forms or projects?

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 1.3k 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.
  • stetstefanoS Offline
    stetstefanoS Offline
    stetstefano
    wrote on last edited by
    #1

    Hi, I am new in QT5 and I have a question
    Which is better: Multiple forms linked to just one project or multiple projects with a small quantities of forms?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      hi and welcome
      It really depends on the project/task
      There is nothing bad having many forms in a project.

      A common structure for a desktop app is to have a qmainwindow and then
      some forms used as dialogs.

      If some of the files of a huge project is reused in other projects.
      one might also make it a separate project with own forms as to keep it as easy to reuse module.

      1 Reply Last reply
      0
      • stetstefanoS Offline
        stetstefanoS Offline
        stetstefano
        wrote on last edited by
        #3

        I am "converting" a project from Access to QT5 and this project have about 150 forms, what do you suggest?

        mrjjM 1 Reply Last reply
        0
        • stetstefanoS stetstefano

          I am "converting" a project from Access to QT5 and this project have about 150 forms, what do you suggest?

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @stetstefano
          Hi
          In such case, I assume all forms belongs to same core concept so splitting it into
          mutiple project would not really give any benefits.

          So one master projects with all forms, is what I would suggest.

          Maybe its possible to re-use some of the forms as Qt is more flexible
          than the ACCESS version i have tried. (GUI wise)
          So you might not end up with 150 again.

          Can I ask about navigation of the current Access app?
          Is it like a master window and you open dialogs over it or
          does the master window have mutiple pages and
          each "page" you open dialogs?

          stetstefanoS 1 Reply Last reply
          0
          • mrjjM mrjj

            @stetstefano
            Hi
            In such case, I assume all forms belongs to same core concept so splitting it into
            mutiple project would not really give any benefits.

            So one master projects with all forms, is what I would suggest.

            Maybe its possible to re-use some of the forms as Qt is more flexible
            than the ACCESS version i have tried. (GUI wise)
            So you might not end up with 150 again.

            Can I ask about navigation of the current Access app?
            Is it like a master window and you open dialogs over it or
            does the master window have mutiple pages and
            each "page" you open dialogs?

            stetstefanoS Offline
            stetstefanoS Offline
            stetstefano
            wrote on last edited by
            #5

            @mrjj
            The master window have multiples pages and each page open dialogs

            mrjjM 1 Reply Last reply
            0
            • stetstefanoS stetstefano

              @mrjj
              The master window have multiples pages and each page open dialogs

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @stetstefano
              hi
              you should have a look at
              QStackedWidget
              it makes it easy to have "pages"
              with different controls.
              So that as center in a mainwindow and then dialogs
              would most likely suit you well.

              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