![]() Registered Member ![]()
|
I'm trying to make items in my plasmoid resize when the applet gets resized. It would seem like the way to do this is to implement "resizeEvent" for the applet to check the applet size and resize the contents appropriately.
However, when I implement "resizeEvent", it never seems to get called no matter how much I whang away on the resize handle. I also tried connecting "appletTransformedByUser" to a custom method, but that didn't work either. Am I going about this the correct way?
admoore, proud to be a member of KDE forums since 2008-Oct.
|
![]() Registered Member ![]()
|
You have to overload the updateConstraints() function:
From the API: Called when any of the geometry constraints have been updated. This method calls constraintsEvent, which may be reimplemented, once the Applet has been prepared for updating the constraints. |
![]() Registered Member ![]()
|
thanks; I tried your suggestion but I can't seem to make it work. Just to test I did (in my applet class definition):
But nothing ever happens when I resize it. What am I doing wrong?
admoore, proud to be a member of KDE forums since 2008-Oct.
|
![]() Registered Member ![]()
|
Hmm, I think I sent you in the wrong direction. From the documentation it appears you have to override the constraintsEvent().
|
Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]