Languages/Python/PyKDE WebKit Tutorial/Part6: Difference between revisions

From KDE TechBase
m (Text replace - "</code>" to "</syntaxhighlight>")
(No difference)

Revision as of 17:39, 10 March 2016

Now we can add our address bar.

After creating the layout add:

        self.addressBar = QLineEdit(self.widget)
        layout.addWidget(self.addressBar)

A QLineEdit is a widget into which you can type a line of text.

See the full code.

The programme with a line edit for an address bar.


« Back to Part 5 | On to Part 7 »