Stacking tabs with QTabWidgets
-
Greetings !
I've never really liked the feeling of the tabs in Qt. On the other side, I've always loved how tabs feel with the Opera browser. Especially the stacking feature. Basically what I want to do is this:
-
Feature to drop tab on other tabs, creating a stack of tabs that can be extended/shrinked using a button on the right of the tab stack.
-
Feature to detach a tab from the tab widget by dragging it out of the widget. Drag'n'drop for tabs.
I'm looking forward to re-implement such behaviors. That would probably make it fairly simple for Qt web browsers such as Rekonq or QupZilla to implement a tab bar closer to what the mainstream browsers feature.
However I have never developed my own widgets for Qt, so I'd like to get advice from people who already developed their owns. It's been really hard finding any bit of useful information...
I'm wondering what kind of documentation should I read first ?
Would I be better off creating a whole new widget, or just inheriting QTabWidget ?
What kind of problems will I most likely run into given my objectives ?Thanks !
-
-
Hi,
Just a quick idea, you can start with "QTabBar":http://qt-project.org/doc/qt-4.8/qtabbar.html. QTabWidget uses one internally and you can set your own so you can concentrate your work on the bar side.
Hope this helps