Dear visitor, welcome to KDE-Forum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
How to add a widget to a KMultiTabBar?
I have managed to create a KMultiTabBar and added one button to it.
|
Source code
|
1
2
3
4
5
6
7
|
// Create a KMultiTabBar.
m_tabBar = new KMultiTabBar(KMultiTabBar::Vertical, this->centralWidget() );
m_tabBar->setPosition(KMultiTabBar::Left);
// Create a tab.
m_tabBar->appendTab(0, -1, "Files");
m_tabBar->setTab(-1, true);
|
But how do I add a Widget to the "tab-area"? For example a file view or a pushbutton or whatever?
Thanks,
Per
Any link to the docs if KMultiTabBar?
Couldn't find it in kdeui
Cheers,
_
Qt/KDE Developer
Debian User
Originally posted by anda_skoa
Any link to the docs if KMultiTabBar?
Couldn't find it in kdeui
Cheers,
_
KMultiTabBar API:
http://developer.kde.org/documentation/l…ultiTabBar.html
Maybe KMultiTabBar doesn't provide the actual "sideview", just the tab-bar? In that case, what should I use to create a Widget and associate it with the tab?
Thanks,
Per
This post has been edited 1 times, last edit by "panzar" (Apr 15th 2005, 12:01pm)
Ah, kutils, I have looked at kdeui
Seems like it only manages the tab _bar_ not the tab widgets,
I guess you can combine this with a QWidgetStack
Cheers,
_
Qt/KDE Developer
Debian User
Originally posted by anda_skoa
Ah, kutils, I have looked at kdeui
Seems like it only manages the tab _bar_ not the tab widgets,
I guess you can combine this with a QWidgetStack
Cheers,
_
Yep, that's correct.
I talked to one of the amaroK developers who enlightened me about that.
Looks pretty good now.
Thanks for helping out anda_skoa,
Per