Difference between revisions of "Development/Languages/Python/PyKDE WebKit Tutorial/Part5"

Jump to: navigation, search
(New page: We will change the top widget again adding a ''KMainWindow'' to contain our ''QWidget''. <code python> self.window = KMainWindow() self.widget = QWidget() self.win...)
Line 15: Line 15:
[[Development/Languages/Python/PyKDE_WebKit_Tutorial/Part4|« On to Part 4]][[Development/Languages/Python/PyKDE_WebKit_Tutorial/Part6|On to Part 6 »]]
[[Development/Languages/Python/PyKDE_WebKit_Tutorial/Part4|« On to Part 4]] [[Development/Languages/Python/PyKDE_WebKit_Tutorial/Part6|On to Part 6 »]]

Revision as of 00:10, 13 October 2008

We will change the top widget again adding a KMainWindow to contain our QWidget.

       self.window = KMainWindow()
       self.widget = QWidget()

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.


« On to Part 4 On to Part 6 »

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal