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

    Hi
    I meant the online version from
    https://www.qt.io/download
    (open source side)
    (you will get a file named qt-unified-windows-x86-3.0.4-online.exe)
    Then check the the mingw as shown.

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

      is that OK? or do I have only a mingw 5.3.0 32bit?

      alt text

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

        is that OK? or do I have only a mingw 5.3.0 32bit?

        alt text

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

        @caca0o
        No no, that is WAYYY to much.
        Just check the MinGW 5.3 one. Nothing else.
        You can always add say Qt Chart or other optional modules should you need it.
        Do not install UWP or MSVC.

        alt text

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

          very much thank you. it works

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

            very much thank you. it works

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

            @caca0o
            Super.
            Happy programming.
            Remember to mark as solved.

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

              hi, I would like to have one more question. when I want to have one panel in the mainwindow. where do i give pushbuttons.
              to be bordered, what is the best choice? I want to make a little foundation for gui as soon as possible

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

                hi, I would like to have one more question. when I want to have one panel in the mainwindow. where do i give pushbuttons.
                to be bordered, what is the best choice? I want to make a little foundation for gui as soon as possible

                FlotisableF 離線
                FlotisableF 離線
                Flotisable
                寫於 最後由 編輯
                #36

                @caca0o
                I think you can take a look at QToolBar.

                and also read Application Example to learn how to use it.

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

                  so this example. is it going to be done in the toolbox?
                  or do I need to find another command?

                  alt text

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

                    so this example. is it going to be done in the toolbox?
                    or do I need to find another command?

                    alt text

                    jsulmJ 離線
                    jsulmJ 離線
                    jsulm
                    Lifetime Qt Champion
                    寫於 最後由 編輯
                    #38

                    @caca0o You can simply use a QVBoxLayout.
                    You can even find an example showing exactly what you want to do: http://doc.qt.io/qt-5/qvboxlayout.html

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

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

                      maybe I'll find a solution. when I get back. and I do not want QStackedWidget or QTabWidget.
                      how do I make more of the same windows so the push button always opens a window on the same place?
                      I need to do several Widgets with similar content.

                      I can not find a solution

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

                        maybe I'll find a solution. when I get back. and I do not want QStackedWidget or QTabWidget.
                        how do I make more of the same windows so the push button always opens a window on the same place?
                        I need to do several Widgets with similar content.

                        I can not find a solution

                        jsulmJ 離線
                        jsulmJ 離線
                        jsulm
                        Lifetime Qt Champion
                        寫於 最後由 編輯
                        #40

                        @caca0o Did you check the link I posted?
                        You can create your own widget containing what ever you need and create several instances of it. Or do I misunderstand your question? Your description isn't clear.

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

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

                          I'll show you the suggestion. I would like to see "pages 1-10" opened in the "window".

                          alt text

                          and I would like a link in the "window" to the next widget in this window (page3a)

                          alt text

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

                            I'll show you the suggestion. I would like to see "pages 1-10" opened in the "window".

                            alt text

                            and I would like a link in the "window" to the next widget in this window (page3a)

                            alt text

                            jsulmJ 離線
                            jsulmJ 離線
                            jsulm
                            Lifetime Qt Champion
                            寫於 最後由 jsulm 編輯
                            #42

                            @caca0o And what is the problem? If you do not want to use QStackedWidget or QTabWidge then do the following: connect a slot to each button on the left side, in each slot create and show the widget this button is supposed to show and put this widget inside the window.

                            https://forum.qt.io/topic/113070/qt-code-of-conduct

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

                              the problem is when I make two widgets on the same site
                              it did this
                              alt text
                              widget 2 is in widget1 not in mainwindow

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

                                the problem is when I make two widgets on the same site
                                it did this
                                alt text
                                widget 2 is in widget1 not in mainwindow

                                jsulmJ 離線
                                jsulmJ 離線
                                jsulm
                                Lifetime Qt Champion
                                寫於 最後由 編輯
                                #44

                                @caca0o Well, if you put widget_2 under widget when it is like this.
                                That's why QStackedWidget and QTabWidge were suggested, but for some reason you don't want to use any of them...
                                With your approach you need to do it in a different way: you crate two separate widgets (outside of main window!), and then put the one which is needed at runtime into your main window.

                                https://forum.qt.io/topic/113070/qt-code-of-conduct

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

                                  I apologize .. I found that Qstackedwidget is what I am looking for
                                  then there are not the arrows at the top right

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

                                    What arrows ?

                                    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 caca0o

                                      I apologize .. I found that Qstackedwidget is what I am looking for
                                      then there are not the arrows at the top right

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

                                      @caca0o

                                      • then there are not the arrows at the top right

                                      The small arrows to navigate the pages are ONLY shown in Designer.
                                      When app is run, they are not shown as you are expected to handle the navigation
                                      by other means. (your own buttons etc)

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

                                        ok thank you for all the help you have done for me. in this topic I have about the last question.
                                        is it going to link QT with sql?

                                        for example. if I wanted to make a login, fill in the name, year of birth, etc. and "select one item from 30" from database in sql. and then you open gui according to what you "select one item from 30"? if you disagree with the description in more detail

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

                                          Please, take the time to search the documentation. Qt provides its SQL module.

                                          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

                                          • 登入

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