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 Update on Monday, May 27th 2025

GUI help

Scheduled Pinned Locked Moved Solved General and Desktop
87 Posts 5 Posters 33.4k Views
  • 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
    #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 Reply Last reply
    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 Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by 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 Reply Last reply
      0
      • C Offline
        C Offline
        caca0o
        wrote on last edited by
        #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 Reply Last reply
        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 Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #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 Reply Last reply
          0
          • C Offline
            C Offline
            caca0o
            wrote on last edited by
            #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 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #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 Reply Last reply
              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 Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #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 Reply Last reply
                1
                • C Offline
                  C Offline
                  caca0o
                  wrote on last edited by
                  #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 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #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 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      caca0o
                      wrote on last edited by
                      #50

                      and is it possible to download SQL directly from qt?
                      or do I have to download my sql?

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #51

                        @caca0o said in GUI help:

                        and is it possible to download SQL directly from qt?
                        or do I have to download my sql?

                        That's really not clear. Download what ?

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

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

                          is some QT SQL? or I have to download SQL on their official websites?

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #53

                            There's no "Qt SQL". As written before, Qt has the SQL module which provides plugin for various database systems available like PostgreSQL, SQLite, MySQL etc. Taking a look at the module documentation, and more specially the SQL Database Drivers chapter would have answered that question.

                            By the way, it's Qt, QT stands for Apple's QuickTime which is likely not what you want 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 Reply Last reply
                            1
                            • C Offline
                              C Offline
                              caca0o
                              wrote on last edited by
                              #54

                              ok. but I can not find a file to download so I can create the db in it

                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #55

                                Because it's up to you to setup your system with PostgresSQL, MySQL or whatever database system you want/need that is supported by Qt.

                                SQLite doesn't required any external stuff as it's using a file for the database itself.

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

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

                                  ok I understand it. of course, I can insert db from SQLite into GUI and qt
                                  I hope I do not have much questions

                                  1 Reply Last reply
                                  0
                                  • SGaistS Offline
                                    SGaistS Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #57

                                    Take a look at the module and classes documentation as well as the examples. They use SQLite so developers don't need to install anything special to run them.

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

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

                                      I'm still asking. do i make a qt gui game for a sports manager?

                                      1 Reply Last reply
                                      0
                                      • SGaistS Offline
                                        SGaistS Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #59

                                        That wasn't your original question. Anyway, why wouldn't you ?

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

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

                                          I would like to work on the introductory menus. when I have a button start game and then select options etc. do I have to do it as new sources? here is probably not the stacked widget.

                                          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