Differences between revisions 4 and 5
Revision 4 as of 2014-11-06 19:45:38
Size: 10624
Editor: DavidBoddie
Comment: Organised the snippets for different versions a little better, adding a section for PyQt 5.
Revision 5 as of 2014-11-16 23:50:53
Size: 10713
Editor: bugreporter
Comment: Adding link to PyQt5 example: QML callback functions.
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
Line 24: Line 23:
Line 30: Line 28:
Line 45: Line 42:
Line 60: Line 56:
Line 78: Line 73:
Line 91: Line 85:
Line 98: Line 91:
Line 102: Line 94:
Line 106: Line 97:
Line 110: Line 100:
Line 114: Line 103:
 * [[PyQt/QML callback function|QML callback function]]: How to pass and execute callback functions with QML.

This page contains links to some useful code snippets. Longer, more detailed code examples can be found via the Overviews_and_Guides page.

Put any code snippet for PyKDE and PyQt that you find useful here. If the code is longer than one screen at normal point size, it might be better if you provide a rationale and a link, or just put it on a separate page.

PyQt 3

Note: PyQt 3 examples have not been transferred from the old PyQt Wiki.

PyQt 4

Infrastructure

Painting

Widgets

Item Views

WebKit

Multimedia

Drag and Drop

Databases

  • Removing a database: How to remove a database and optionally reload it again without getting warnings from Qt.

Qt Designer and uic

PyQt 5

PyQt/SampleCode (last edited 2019-08-06 22:59:05 by DavidBoddie)

Unable to edit the page? See the FrontPage for instructions.