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. GUI help
Forum Updated to NodeBB v4.3 + New Features

GUI help

Scheduled Pinned Locked Moved Solved General and Desktop
87 Posts 5 Posters 35.9k Views 3 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.
  • C Offline
    C Offline
    caca0o
    wrote on last edited by
    #66

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

    mrjjM 1 Reply Last reply
    0
    • C caca0o

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

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

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

      1 Reply Last reply
      0
      • C Offline
        C Offline
        caca0o
        wrote on last edited by
        #68

        and so can two projects be linked together?

        mrjjM 1 Reply Last reply
        0
        • C caca0o

          and so can two projects be linked together?

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

          @caca0o
          In what way linked ?

          1 Reply Last reply
          0
          • C Offline
            C Offline
            caca0o
            wrote on last edited by
            #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 Reply Last reply
            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 Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #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 Reply Last reply
              0
              • C Offline
                C Offline
                caca0o
                wrote on last edited by
                #72

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

                mrjjM 1 Reply Last reply
                0
                • C caca0o

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

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #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 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    caca0o
                    wrote on last edited by
                    #74

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

                    mrjjM 1 Reply Last reply
                    0
                    • C caca0o

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

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

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

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        caca0o
                        wrote on last edited by
                        #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 Reply Last reply
                        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 Offline
                          mrjjM Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on last edited by
                          #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 Reply Last reply
                          0
                          • C Offline
                            C Offline
                            caca0o
                            wrote on last edited by
                            #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 Reply Last reply
                            0
                            • C Offline
                              C Offline
                              caca0o
                              wrote on last edited by
                              #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 Reply Last reply
                              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 Offline
                                mrjjM Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on last edited by
                                #80

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

                                1 Reply Last reply
                                0
                                • C Offline
                                  C Offline
                                  caca0o
                                  wrote on last edited by
                                  #81

                                  yes, I would like to know if this is possible with qt.
                                  but I do not know how to set it to make the result like what I want

                                  mrjjM 1 Reply Last reply
                                  0
                                  • C caca0o

                                    yes, I would like to know if this is possible with qt.
                                    but I do not know how to set it to make the result like what I want

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

                                    @caca0o
                                    yes, Qt has good database support so its very possible.
                                    You will have to know SQL to some extent to use it.
                                    https://www.w3schools.com/sql/

                                    and use these classes
                                    http://doc.qt.io/qt-5/qtsql-index.html

                                    1 Reply Last reply
                                    1
                                    • C Offline
                                      C Offline
                                      caca0o
                                      wrote on last edited by
                                      #83

                                      ok thanks... when I think in the future.
                                      i still do not know how to set in qt (neutral - .cpp? as the main window with GUI - game)
                                      it should actually work for people in the game

                                      mrjjM 1 Reply Last reply
                                      0
                                      • C caca0o

                                        ok thanks... when I think in the future.
                                        i still do not know how to set in qt (neutral - .cpp? as the main window with GUI - game)
                                        it should actually work for people in the game

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

                                        @caca0o
                                        well if a sports game manager, it would be fine to dedicate a .cpp to all
                                        database functions
                                        like
                                        Addplayer
                                        RemovePlayer
                                        GetTeam
                                        GetStats

                                        to hide all database code and make it easy for other classes to use.

                                        1 Reply Last reply
                                        1
                                        • C Offline
                                          C Offline
                                          caca0o
                                          wrote on last edited by
                                          #85

                                          ok it will be annoying. but will it work when I have different lines in a stacket widget like (news, home, roster, etc.)?

                                          mrjjM 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