Difference between revisions of "Languages/Python/PyKDE WebKit Tutorial/Part5"
m (Text replace - "</code>" to "</syntaxhighlight>")
m (Ochurlaud moved page Development/Languages/Python/PyKDE WebKit Tutorial/Part5 to Languages/Python/PyKDE WebKit Tutorial/Part5)
Revision as of 17:39, 10 March 2016
We will change the top widget again adding a KMainWindow to contain our QWidget.
self.window = KMainWindow() self.widget = QWidget() self.window.setCentralWidget(self.widget)
A KMainWindow is intended to be the top level widget in most KDE applications. It makes it very easy to add menus, toolbars and a statusbar to your application. In this example I'm afraid to say it exists only to work around a bug where the application crashes if we don't use it.
See the full code.
This version will look the same as the previous.