Languages/Python/PyKDE WebKit Tutorial/Part6

From KDE TechBase
Revision as of 00:16, 13 October 2008 by Jriddell (talk | contribs) (New page: Now we can add our address bar. After creating the layout add: <code python> self.addressBar = QLineEdit(self.widget) layout.addWidget(self.addressBar) </code> A ''QLine...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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 »