Making multiple windows on browser
-
wrote on 4 Jun 2013, 04:00 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
-
wrote on 4 Jun 2013, 04:16 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. -
wrote on 4 Jun 2013, 04:19 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. -
wrote on 4 Jun 2013, 04:26 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.htmlHow do you imagine your app, how it will look like?
-
wrote on 4 Jun 2013, 04:32 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. -
wrote on 4 Jun 2013, 04:43 last edited by
Ok, use QTabWidget then.
-
wrote on 4 Jun 2013, 04:46 last edited by
ok, thanks. is there a way to undo size constraints?
-
wrote on 12 Jun 2013, 23:48 last edited by
ok, so i am still really confused on how to use QTabWidget.
-
wrote on 13 Jun 2013, 06:29 last edited by
What is the problem?
-
wrote on 14 Jun 2013, 21:57 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. -
wrote on 19 Jun 2013, 23:08 last edited by
help anyone?
-
wrote on 20 Jun 2013, 11:10 last edited by
Maybe this "link":http://www.codeprogress.com/cpp/libraries/qt/qtClasses.php?item=QTabwidget can be helpful.
-
wrote on 22 Jun 2013, 03:36 last edited by
Aha thankyou!