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

List:       kde-panel-devel
Subject:    Re: How to adjust applet size according to its child QGraphicsWidget?
From:       Marco Martin <notmart () gmail ! com>
Date:       2008-12-30 15:23:10
Message-ID: 200812301623.10434.notmart () gmail ! com
[Download RAW message or body]

On Tuesday 30 December 2008, Dong Tiger wrote:
> Hi,
>
> A QGraphicsWidget is embeded into Plasma::Applet through
> QGraphicsLinearLayout. When this QGraphicsWidget's size changes, how to get
> the applet's size adjusted accordingly?
>
> The code snippet looks like:
>
>   child = new MyGraphicsWidget(applet);
>   layout = new QGraphicsLinearLayout(applet);
>   layout->setSpacing(0);
>   layout->addItem(child);
>   applet->setLayout(layout);
does calling applet->updateGeometry() work?

Cheers,
Marco Martin
>
> Regards,
> --
> Tiger


_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic