[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: QHBox and a parts widget
From: Tobias Neubert <tobi () s-neubert ! net>
Date: 2003-05-16 15:46:17
[Download RAW message or body]
Great, that works.
Thanks, Tobias
Am Donnerstag, 15. Mai 2003 20:48 schrieb Kevin Krammer:
> 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
>> 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