[Kde-bindings] KParts::MainWindow and khtml weirdness
Paolo Capriotti
p.capriotti at gmail.com
Tue Jul 14 19:59:27 UTC 2009
The following program works, but crashes on createGUI if I comment out
the line "require 'khtml'". Any ideas?
Paolo Capriotti
--
require 'korundum4'
require 'ktexteditor'
# require 'khtml'
data = KDE::AboutData.new "test", "konqueror", KDE::ki18n("test"), "0.0.1"
KDE::CmdLineArgs.init ARGV, data
app = KDE::Application.new
w = KParts::MainWindow.new nil, 0
doc = KDE::PluginLoader.new("katepart").factory.create "katepart", w, w,
[], ''
w.central_widget = doc.widget
w.createGUI(doc)
doc.widget.set_focus
w.show
app.exec
More information about the Kde-bindings
mailing list