[Konsole-devel] KDE Tutorial

Waldo Bastian bastian at kde.org
Mon Apr 8 23:42:40 UTC 2002


On Monday 08 April 2002 04:16 pm, David Durst wrote:
> I don't see any reference to the Konsole API on the site you gave me:
> http://developer.kde.org/
> So how do I use it??????

Ah no.. there is no tutorial on konsole in specific only on KParts in general. 

See e.g. http://developer.kde.org/documentation/tutorials/kparts/index.html
and http://phil.freehackers.org/kde/kpart-techno/kpart-techno.html

For konsole it becomes something like:

	KService::Ptr ptr = KService::serviceByDesktopName("konsolepart");
	factory = KLibLoader::self()->factory( ptr->library() );
	if (factory) {
		m_konsole = static_cast<KParts::ReadOnlyPart *>(factory->create(this,
					ptr->name(), "KParts::ReadOnlyPart"));
	}

Cheers,
Waldo
-- 
bastian at kde.org  |   SuSE Labs KDE Developer  |  bastian at suse.com




More information about the konsole-devel mailing list