[Kde-bindings] ruby - dispose QT button OK, plasma button crash
Petr Sigut
bindings at sigut.net
Fri Oct 16 19:29:06 UTC 2009
Hello,
I am writing plasmoid in ruby and I need to remove widgets on the fly, I was
pointed to dispose method, but if I use it, the plasmoid crash, when I try
dispose QT button, everything works.
# disposing QT button is ok
qt_button = Qt::PushButton.new('Hello World!')
# prints object
puts qt_button
# prints nil
puts qt_button.dispose
# disposing Plasma button is crash
plasma_button = Plasma::PushButton.new
# prints object
puts plasma_button
# crash
plasma_button.dispose
Zipped plasmoid, just plasmapkg -i test-widget.zip and
plasmoidviewer test-widget
http://tmp2.sigut.net/test-widget.zip
I appreciate any help, I tried several different methods (removeAt, ...) but
with no luck. I will also provide any other information needed.
I use Ubuntu 9.10 beta, KDE 4.3.2
Petr Sigut
More information about the Kde-bindings
mailing list