跳到內容
  • 版面
  • 最新
  • 標籤
  • 熱門
  • 使用者
  • 群組
  • 搜尋
  • 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
  • 從舊到新
  • 從新到舊
  • 最多點贊
回覆
  • 在新貼文中回覆
登入後回覆
此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
  • C 離線
    C 離線
    caca0o
    寫於 最後由 編輯
    #1

    At first, excuse my English. I would like to make a GUI for the beginning. It should look like this

    alt text

    I needed to advise on how best to do it in qt creator. The question is: How to do for each button in the panel, next window.
    I should create Multiple QMainWindow or otherwise. I want the panel to be in every link.
    I hope you can advise me. Thanks

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

      Hi,

      Do you mean something like a QTabWidget ?

      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
        寫於 最後由 編輯
        #3

        Hi, no. I think the GUI file for the game. both panels should have all the necessary links in it to open another window (on image 'window'). I need to link to a window from the panel.but I do not know how to split the window for each link.

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

          So a bit like Qt Creator then ?

          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
            寫於 最後由 編輯
            #5

            yes in Qt Creator. Qt Widget Application

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

              I meant, like the GUI of Qt Creator, with the bar on the left with all the buttons and the central widget that changes depending on what you clicked on the bar ?

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

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

                Yes, now I'm looking at it. And something like that

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

                  Finally, I do not know if it will look like this in the GUI final. But it's about learning how to have a central widget in more variants. If it works.

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

                    Finally, I do not know if it will look like this in the GUI final. But it's about learning how to have a central widget in more variants. If it works.

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

                    @caca0o
                    Hi
                    You should also have a look at
                    http://doc.qt.io/qt-5/qstackedwidget.html

                    It makes it easy to have a design where on part of the window can be turned
                    back and forth like pages in a book.
                    Each "page" is a normal widget and can contain other widgets.
                    So in effect it would be like many central widgets.

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

                      StackedWidget is a good idea. But I was wondering how to make more central widgets. I still thought how to make a panel. Do you have any instructions?

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

                        QStackedWidget is used as a "container widget" where you put all the other widgets you are going to use.

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

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

                          I would still have one question

                          alt text

                          it does not work with debug. how can I fix it?

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

                            I would still have one question

                            alt text

                            it does not work with debug. how can I fix it?

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

                            @caca0o
                            hi
                            Seems you have chosen Qt for visual studio.
                            Did you also install the compiler from microsoft site ?
                            (or had it already installed)
                            Unlike the mingw version, the compiler is not included with Qt
                            and must be installed separately by user.

                            If yes, did you also install the debug tools?
                            for getting a debugger.
                            http://doc.qt.io/qtcreator/creator-debugger-engines.html

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

                              hi ... do you mean this link?

                              https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk

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

                                hi ... do you mean this link?

                                https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk

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

                                @caca0o
                                Hi
                                Nope, the actual compiler
                                https://www.visualstudio.com/downloads/
                                If you dont want the whole IDE, you can use
                                http://landinghub.visualstudio.com/visual-cpp-build-tools

                                If you dont need to use visual studio , you might consider removing the VS qt
                                and install the mingw Qt instead. It comes with compiler and debugger and is ready to go.
                                alt text
                                Tool is located in
                                "C:\Qt\MaintenanceTool.exe"

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

                                  now I install. I hope that it's correct. Build Tools for Visual Studio 2017

                                  alt text

                                  if not. you can inform me of the wrong procedure

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

                                    now I install. I hope that it's correct. Build Tools for Visual Studio 2017

                                    alt text

                                    if not. you can inform me of the wrong procedure

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

                                    @caca0o
                                    Hi
                                    Hopefully. it looks right but im not sure due to the language.

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

                                      it did not help. when I click to run. do I have anything to set up?

                                      alt text

                                      or sketch something else on the offer. if you had an offer in English .. I would prove it

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

                                        it did not help. when I click to run. do I have anything to set up?

                                        alt text

                                        or sketch something else on the offer. if you had an offer in English .. I would prove it

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

                                        @caca0o
                                        What about just going with mingw then ?
                                        It has all included and works out of the box.

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

                                          with qt-opensource-windows-x86-mingw530-5.8.0.exe

                                          alt text

                                          I really do not think it could be?

                                          mrjjM 1 條回覆 最後回覆
                                          0

                                          • 登入

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