[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: How to adjust applet size according to its child QGraphicsWidget?
From: "Dong Tiger" <idlecat511 () gmail ! com>
Date: 2008-12-30 12:25:28
Message-ID: cba868840812300425y664d402xe6eca2b9348909d8 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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);
Regards,
--
Tiger
[Attachment #5 (text/html)]
Hi,<br><br>A QGraphicsWidget is embeded into Plasma::Applet through \
QGraphicsLinearLayout. When this QGraphicsWidget's size changes, how to get the \
applet's size adjusted accordingly? <br><br>The code snippet looks like:<br> \
<br> child = new MyGraphicsWidget(applet);<br> layout = new \
QGraphicsLinearLayout(applet);<br> layout->setSpacing(0);<br> \
layout->addItem(child);<br> \
applet->setLayout(layout);<br><br><br>Regards,<br>--<br>Tiger<br>
_______________________________________________
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