[Kde-bindings] QtRuby crash at find_child
David Palacio
dpalacio at uninorte.edu.co
Thu Apr 9 00:43:26 UTC 2009
This is a little testcase based on a working code (on 4.2.0). Change TEST_KDE
to true to get the crash.
# Source code for testcase
require 'korundum4'
about = KDE::AboutData.new(
'irb_kapp', 'irb_kapp',
KDE.ki18n( 'IRB KApp' ), '1.8.7',
KDE.ki18n( 'Kuick IRB Application' ),
KDE::AboutData::License_GPL_V3,
KDE.ki18n( '(c) 2009 Null' ) )
KDE::CmdLineArgs.init(ARGV, about)
KDE::Application.new
#Switch test
TEST_KDE = false
w = TEST_KDE ? KDE::MainWindow.new : Qt::Widget.new
offers = KDE::ServiceTypeTrader.self.query 'KParts/ReadOnlyPart', "(Library ==
'okularpart')"
factory = KDE::PluginLoader.new(offers[0].library).factory
part = factory.create('KParts::ReadOnlyPart', w, nil, [], '')
pageview = w.find_child( Qt::Object, 'okular::pageView')
puts pageview.inspect
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.rb.kcrash
Type: application/octet-stream
Size: 2580 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20090408/6605f9bb/attachment.obj>
More information about the Kde-bindings
mailing list