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

List:       kde-devel
Subject:    Re: Kparts problem
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2003-08-27 17:34:52
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Tuesday 26 August 2003 18:49, Thomas Schwarzgruber wrote:
> Hello !
>
> I just adopted a application from normal KDE3 to the KDE Parts scheme.
> Everything worked fine, except one strange behavior of a widget.
>
> I've put all my different widgets into one class. If i instantiate from
> this class in the constructor of my part, the widget seems to be in
> front of the toolbar and is far too small. Now the strange thing: if i
> make a qsplitter and set the qsplitter as widget (setWidget) and then
> instantiate my class and child it to the qsplitter it shows my widget
> correctly (beside that it is on the right side of the splitted view)

Isn't this more a problem of the embedder?
It has to add the widget returned by widget() to its layout.
You just need to make sure your widget returns a proper sizeHint.

Cheers,
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