From kde-devel Tue Sep 27 17:58:11 2005 From: Kevin Krammer Date: Tue, 27 Sep 2005 17:58:11 +0000 To: kde-devel Subject: Re: Creating a kpart component that uses a custom widget Message-Id: <200509271958.12128.kevin.krammer () gmx ! at> X-MARC-Message: https://marc.info/?l=kde-devel&m=112784395026567 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0577495575==" --===============0577495575== Content-Type: multipart/signed; boundary="nextPart3484691.QKEs0jJgxF"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart3484691.QKEs0jJgxF Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 27 September 2005 17:26, David Faure wrote: > On Tuesday 27 September 2005 17:08, Juan Luis Baptiste wrote: > > >I might be misunderstanding you but why do you create a dialog subclass > > > if you don't want it to be a separate window? > > > > Because it was a separate window before, now I want to embed it in > > another app. I tried changing it to a QWidget but I had the same result. > > You need to go back to a QWidget, and maybe you need to implement its > "virtual QSize sizeHint() const" method, to give a reasonable default size > to the widget (if it doesn't have a layout). Check in code with isVisible= () > whether it's actually shown... > And make sure it gets a non-0 parent widget. Hmm, are you sure it is not required to either change to a non-top-level ba= se=20 class or reparent the dialog based one to get it embedded? Cheers, Kevin =2D-=20 Kevin Krammer Qt/KDE Developer, Debian User Moderator: www.mrunix.de (German), www.qtforum.org --nextPart3484691.QKEs0jJgxF Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBDOYg0nKMhG6pzZJIRAgxyAJ0duH3v+CldsH3rQuaUYFxUa1ce8ACdGPyy CCcZk1s8K38UvOIr4LeYDpQ= =Toi1 -----END PGP SIGNATURE----- --nextPart3484691.QKEs0jJgxF-- --===============0577495575== Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline = >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib= e << --===============0577495575==--