Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Making multiple windows on browser

    General and Desktop
    2
    13
    2059
    Loading More Posts
    • 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.
    • N
      nicky j last edited by

      Hey, so im new to Qt and I have been working on a browser.
      I am not sure how I can make multiple windows for the same application.
      I want it set up where I can click 'new window' and a new window will pop up.
      Could someone please advise me on how to do this? Thanks!
      If this post is in the wrong section, please let me know.

      Qt 5, Ubuntu 12.04

      1 Reply Last reply Reply Quote 0
      • Q
        qxoz last edited by

        Hi!
        Of course you can make multiple windows for your single application, there are many ways to do that.
        For browser kind app i think QTabWidget is convenient or you can use MDI or simple parent child dialogs. It depends of your goals.

        1 Reply Last reply Reply Quote 0
        • N
          nicky j last edited by

          qxoz, thanks for the quick response!
          what are the differences between QTabWidget, MDI, or simple parent child dialogs? My goal is to make the browser display a new window when I press a button.

          1 Reply Last reply Reply Quote 0
          • Q
            qxoz last edited by

            Well
            "QTabWidget":http://qt-project.org/doc/qt-5.0/qtwidgets/qtabwidget.html
            "MDI":http://qt-project.org/doc/qt-5.0/qtwidgets/mainwindows-mdi.html
            "Dialog":http://qt-project.org/doc/qt-5.0/qtwidgets/examples-dialogs.html

            How do you imagine your app, how it will look like?

            1 Reply Last reply Reply Quote 0
            • N
              nicky j last edited by

              here it is thus far:
              my design philosophy is to be sleek yet functional. kinda a hybrid between chrome and firefox. I would like to possibly make a tab row underneath the search bar row.

              1 Reply Last reply Reply Quote 0
              • Q
                qxoz last edited by

                Ok, use QTabWidget then.

                1 Reply Last reply Reply Quote 0
                • N
                  nicky j last edited by

                  ok, thanks. is there a way to undo size constraints?

                  1 Reply Last reply Reply Quote 0
                  • N
                    nicky j last edited by

                    ok, so i am still really confused on how to use QTabWidget.

                    1 Reply Last reply Reply Quote 0
                    • Q
                      qxoz last edited by

                      What is the problem?

                      1 Reply Last reply Reply Quote 0
                      • N
                        nicky j last edited by

                        @qxoz,
                        So I have read the documentation, but im not sure how to make it switch tabs. Do I have to make separate windows for each tab? I know im being vague, but I just don't really understand how to get started with the tabs.

                        1 Reply Last reply Reply Quote 0
                        • N
                          nicky j last edited by

                          help anyone?

                          1 Reply Last reply Reply Quote 0
                          • Q
                            qxoz last edited by

                            Maybe this "link":http://www.codeprogress.com/cpp/libraries/qt/qtClasses.php?item=QTabwidget can be helpful.

                            1 Reply Last reply Reply Quote 0
                            • N
                              nicky j last edited by

                              Aha thankyou!

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post