You are not logged in.

panzar

Beginner

  • "panzar" started this thread

Posts: 10

Location: Skovde, Sweden.

  • Send private message

1

Friday, April 15th 2005, 8:39am

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

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Friday, April 15th 2005, 9:31am

Any link to the docs if KMultiTabBar?
Couldn't find it in kdeui

Cheers,
_
Qt/KDE Developer
Debian User

panzar

Beginner

  • "panzar" started this thread

Posts: 10

Location: Skovde, Sweden.

  • Send private message

3

Friday, April 15th 2005, 11:31am

Quoted

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)


anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

4

Saturday, April 16th 2005, 4:24pm

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

panzar

Beginner

  • "panzar" started this thread

Posts: 10

Location: Skovde, Sweden.

  • Send private message

5

Sunday, April 17th 2005, 4:06pm

Quoted

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