PDA

View Full Version : Tabbed application example



sulliwk06
16th April 2014, 20:32
Does anyone know of any good example for making a tabbed application?

My application is essentially going to be a simple view of an ftp server in each tab.

I took a crack at developing this a while ago and it ended up very messy. I had each tab running in it's own thread and had to pass pointers for connection parameters through a long line of classes. And then sending error signals back to the main thread was very convoluded. Now that I have some more QT under my belt I am going to try again with everything in a single thread. But a reference of a good tabbed application would help, particularly one where all the tabs are the same. Can anyone help?

Infinity
16th April 2014, 21:17
But a reference of a good tabbed application would help
You can check out the source code of Okteta which uses tabs: http://www.kde.org/applications/utilities/okteta/
Konqueror uses tabs as well.

Additionally there are some simple examples in the Qt documentation that might help you:
http://qt-project.org/doc/qt-4.8/dialogs-tabdialog.html
http://qt-project.org/doc/qt-4.8/network-qftp.html