跳到內容
  • 版面
  • 最新
  • 標籤
  • 熱門
  • 使用者
  • 群組
  • 搜尋
  • Get Qt Extensions
  • Unsolved
Collapse
品牌標誌
  1. 首頁
  2. Qt Development
  3. General and Desktop
  4. GUI help
Forum Updated to NodeBB v4.3 + New Features

GUI help

已排程 已置頂 已鎖定 已移動 Solved General and Desktop
87 貼文 5 Posters 36.3k 瀏覽 3 Watching
  • 從舊到新
  • 從新到舊
  • 最多點贊
回覆
  • 在新貼文中回覆
登入後回覆
此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
  • SGaistS 離線
    SGaistS 離線
    SGaist
    Lifetime Qt Champion
    寫於 最後由 編輯
    #61

    Don’t try to fit everything in one widget. That would end up a sort of Frankenmonster.

    Take the time to cut your application in logical pieces. Then write your widgets.

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 條回覆 最後回覆
    0
    • C 離線
      C 離線
      caca0o
      寫於 最後由 編輯
      #62

      so you recommend more Sources cpp files. I understand it well?

      1 條回覆 最後回覆
      0
      • SGaistS 離線
        SGaistS 離線
        SGaist
        Lifetime Qt Champion
        寫於 最後由 編輯
        #63

        If recommend a clean design so yes you are going to end up with several classes and thus several header and source files.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 條回覆 最後回覆
        0
        • C 離線
          C 離線
          caca0o
          寫於 最後由 編輯
          #64

          OK thank you. so it is good to separate this apart. for example, the main menu from the game and the main menus from select options.

          I would be interested.
          gui game itself is about to work well through the stacked widget. when it comes to a game of sports manager

          1 條回覆 最後回覆
          0
          • C 離線
            C 離線
            caca0o
            寫於 最後由 編輯
            #65

            I would still be interested. are they going to combine the .pro files, or do I need them or do I need to have the whole game in .cpp?

            1 條回覆 最後回覆
            0
            • C 離線
              C 離線
              caca0o
              寫於 最後由 編輯
              #66

              or whether they are going to combine two projects into one another

              mrjjM 1 條回覆 最後回覆
              0
              • C caca0o

                or whether they are going to combine two projects into one another

                mrjjM 離線
                mrjjM 離線
                mrjj
                Lifetime Qt Champion
                寫於 最後由 編輯
                #67

                @caca0o
                In most cases , if apps are not related they will have their own .pro files.

                1 條回覆 最後回覆
                0
                • C 離線
                  C 離線
                  caca0o
                  寫於 最後由 編輯
                  #68

                  and so can two projects be linked together?

                  mrjjM 1 條回覆 最後回覆
                  0
                  • C caca0o

                    and so can two projects be linked together?

                    mrjjM 離線
                    mrjjM 離線
                    mrjj
                    Lifetime Qt Champion
                    寫於 最後由 編輯
                    #69

                    @caca0o
                    In what way linked ?

                    1 條回覆 最後回覆
                    0
                    • C 離線
                      C 離線
                      caca0o
                      寫於 最後由 編輯
                      #70

                      with two new projects. connected together.
                      as one project (menu) two project (game gui).

                      or I have to be a more cpp file.?

                      mrjjM 1 條回覆 最後回覆
                      0
                      • C caca0o

                        with two new projects. connected together.
                        as one project (menu) two project (game gui).

                        or I have to be a more cpp file.?

                        mrjjM 離線
                        mrjjM 離線
                        mrjj
                        Lifetime Qt Champion
                        寫於 最後由 編輯
                        #71

                        @caca0o
                        well a normal design would be game in own .h and .cpp files with .pro file and
                        menu also as own project.
                        Would u need files from game inside menu ?

                        1 條回覆 最後回覆
                        0
                        • C 離線
                          C 離線
                          caca0o
                          寫於 最後由 編輯
                          #72

                          just ask what is the best solution
                          if the game was done in c ++

                          mrjjM 1 條回覆 最後回覆
                          0
                          • C caca0o

                            just ask what is the best solution
                            if the game was done in c ++

                            mrjjM 離線
                            mrjjM 離線
                            mrjj
                            Lifetime Qt Champion
                            寫於 最後由 編輯
                            #73

                            @caca0o
                            Normally keep all separate in .cpp and .h and own .pro files is the
                            normal way to do it.
                            They can still share some files for shared features if needed.

                            1 條回覆 最後回覆
                            0
                            • C 離線
                              C 離線
                              caca0o
                              寫於 最後由 編輯
                              #74

                              so all windows must be in .cpp and .h in one project. to make the game work

                              mrjjM 1 條回覆 最後回覆
                              0
                              • C caca0o

                                so all windows must be in .cpp and .h in one project. to make the game work

                                mrjjM 離線
                                mrjjM 離線
                                mrjj
                                Lifetime Qt Champion
                                寫於 最後由 編輯
                                #75

                                @caca0o
                                well since game can run on its own without menu , it seems
                                to be the best way.

                                1 條回覆 最後回覆
                                0
                                • C 離線
                                  C 離線
                                  caca0o
                                  寫於 最後由 編輯
                                  #76

                                  this is whether I have to have everything in one project. or does it link the project to one another?

                                  I would like some specific answer

                                  procedure

                                  start game -> Game menu -> new game -> select option [select from sql (eg tym)] -> Game

                                  First, the GUI will then program the game.
                                  so I would love to have the best done to get this done

                                  mrjjM 1 條回覆 最後回覆
                                  0
                                  • C caca0o

                                    this is whether I have to have everything in one project. or does it link the project to one another?

                                    I would like some specific answer

                                    procedure

                                    start game -> Game menu -> new game -> select option [select from sql (eg tym)] -> Game

                                    First, the GUI will then program the game.
                                    so I would love to have the best done to get this done

                                    mrjjM 離線
                                    mrjjM 離線
                                    mrjj
                                    Lifetime Qt Champion
                                    寫於 最後由 編輯
                                    #77

                                    @caca0o
                                    You dont have to have everything in one project.
                                    You can always include other .pro files in master pro file if you need.
                                    But you could start out with one project. And if its gets too big and messy, split to smaller sub projects.

                                    1 條回覆 最後回覆
                                    0
                                    • C 離線
                                      C 離線
                                      caca0o
                                      寫於 最後由 編輯
                                      #78

                                      actually when I have a game menu in it I choose from the sql option. so he's always going to do game gui by sql to make the game gui virtually neutral.

                                      do not you have some tutorials or examples here?

                                      otherwise it is good to have a game menu separate from game gui in two projects
                                      this is how it should actually work

                                      1 條回覆 最後回覆
                                      0
                                      • C 離線
                                        C 離線
                                        caca0o
                                        寫於 最後由 編輯
                                        #79

                                        so it can be done in qt.
                                        choose from sql and by choice -> GUI (neutral, sql-dependent)
                                        something like select options and (team selection) -> Game (by sql)
                                        so that Game always be switched according to the choice in sql

                                        mrjjM 1 條回覆 最後回覆
                                        0
                                        • C caca0o

                                          so it can be done in qt.
                                          choose from sql and by choice -> GUI (neutral, sql-dependent)
                                          something like select options and (team selection) -> Game (by sql)
                                          so that Game always be switched according to the choice in sql

                                          mrjjM 離線
                                          mrjjM 離線
                                          mrjj
                                          Lifetime Qt Champion
                                          寫於 最後由 編輯
                                          #80

                                          @caca0o
                                          You mean have the data in SQL and use that for the game?

                                          1 條回覆 最後回覆
                                          0

                                          • 登入

                                          • Login or register to search.
                                          • 第一個貼文
                                            最後的貼文
                                          0
                                          • 版面
                                          • 最新
                                          • 標籤
                                          • 熱門
                                          • 使用者
                                          • 群組
                                          • 搜尋
                                          • Get Qt Extensions
                                          • Unsolved