From kde-devel Thu May 15 18:48:25 2003 From: Kevin Krammer Date: Thu, 15 May 2003 18:48:25 +0000 To: kde-devel Subject: Re: QHBox and a parts widget X-MARC-Message: https://marc.info/?l=kde-devel&m=105302469407058 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============4352210375804384==" --===============4352210375804384== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_+D+w+xKpl3+kcad"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit --Boundary-02=_+D+w+xKpl3+kcad Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline 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 =3D new QHBoxLayout(this); m_pKoolBar =3D new KoKoolBar(this); > m_pKoolBar->insertGroup(i18n("Tools")); > m_pKoolBar->setFixedWidth( 80 ); > m_pKoolBar->setMinimumHeight( 300 ); m_pLayout->add(m_pKoolBar); > m_pPart =3D > =20 =20 KParts::ComponentFactory::createPartInstanceFromQuery=20 ("text/foo", QString::null, this, 0L, this, 0L); m_pLayout->add(m_pPart->widget()); > resize(700, 500); > > ------------------------------------------------------------ hth, Kevin =2D-=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Kevin Krammer Developer at the Kmud Project http://www.kmud.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --Boundary-02=_+D+w+xKpl3+kcad Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA+w+D+nKMhG6pzZJIRAvWqAJ9TT7fuFzpysQ0fkX6mT50VrH0ZQwCfbiZ1 4Tsj9dMrd9hDaK2I4TSrPwQ= =NoXZ -----END PGP SIGNATURE----- --Boundary-02=_+D+w+xKpl3+kcad-- --===============4352210375804384== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============4352210375804384==--