[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: QHBox and a parts widget
From: Kevin Krammer <kevin.krammer () gmx ! at>
Date: 2003-05-15 18:48:25
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Thursday 15 May 2003 20:39, Tobias Neubert wrote:
> Hi,
>
> just a simple question from a beginner: What do I have to do to let the
> QHBox in the following example manage the layout of the kparts widget?
Try using a QHBoxLayout instead
delcare m_pLayout as QLayout*
> ------- KPart::MainWindows constructor --------------
m_pLayout = new QHBoxLayout(this);
m_pKoolBar = new KoKoolBar(this);
> m_pKoolBar->insertGroup(i18n("Tools"));
> m_pKoolBar->setFixedWidth( 80 );
> m_pKoolBar->setMinimumHeight( 300 );
m_pLayout->add(m_pKoolBar);
> m_pPart =
>
KParts::ComponentFactory::createPartInstanceFromQuery<KParts::ReadWritePart>
("text/foo", QString::null, this, 0L, this, 0L);
m_pLayout->add(m_pPart->widget());
> resize(700, 500);
>
> ------------------------------------------------------------
hth,
Kevin
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Krammer <kevin.krammer@gmx.at>
Developer at the Kmud Project http://www.kmud.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Attachment #5 (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic