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. (It is not possible to upload files at the moment.)
CustomListViewItems: How to customize the painting of list view items. (Qt 3)
ListBoxAndListViewIterators: How to loop over all items in list boxes and list views. (Qt 3)
DragAndDropWithPyQt: How to make use of drag and drop without subclassing. (Qt 3)
CreatingMdiApplications: Some links and pointers for MDI development. (Qt 3)
Wrapper For QWidgetFactory: How to set up the slot connections automatically in PyQt. (Qt 3)
LoadingUIFilesAtRuntime: How to load classes (as opposed to instances) directly from UI files, at runtime. (Qt 3)
SimpleQScintillaExample: a simple demonstration of QScintilla use with PyQt. (Qt 3)
SignalDecorator: a decorator that provides the signal signature for a method. (Qt 3)
ScrollableGroupBox: A simple way to get a scrollable groupbox. (Qt 3)
Capturing Output from a Process: How to capture output from a process and show it in a text editor/browser. (Qt 3)
Printing a Worksheet: How to print the contents of a worksheet onto a single page of A4 paper. (Qt 3)
Decoding Japanese Text: The response to a posting on comp.lang.python, asking about decoding text for display in a GUI.
GraphicsView - SimpleAnimation: How to construct a very simple animation using QGraphicsView, QGraphicsItem, QGraphicsItemAnimation and QTimeLine. (Qt4)
AutoConnectingSlots: How to have the signals of widgets automatically connected to Python defined slots.
Screenshots of various database and 3D graphics widgets, with code to follow soon.
Threading, Signals and Slots: How to perform work in one thread and use the result in another. (Qt 4)
PyQt Wiki