[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    QHBox and a parts widget
From:       Tobias Neubert <tobi () s-neubert ! net>
Date:       2003-05-15 18:39:11
[Download RAW message or body]

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? 

------- KPart::MainWindows constructor --------------
m_pLayout = new QHBox(this);

m_pKoolBar = new KoKoolBar(m_pLayout);
m_pKoolBar->insertGroup(i18n("Tools"));
m_pKoolBar->setFixedWidth( 80 );
m_pKoolBar->setMinimumHeight( 300 );

m_pPart =
  KParts::ComponentFactory::createPartInstanceFromQuery<KParts::ReadWritePart>
           ("text/foo", QString::null, m_pLayout, 0L, this, 0L);

m_pLayout->show();
resize(700, 500);

------------------------------------------------------------

After that, the KoKoolBar looks quite good, but the kparts widget is in the 
topf left corner beside the KoKoolBar and it is very small.

Any help would be great.
Tobias
 
>> 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