KCategorizedView

KDE 4.2 PyKDE API Reference

- KDE's Python API

# KCategorizedView Class Reference

`from PyKDE4.kdeui import *`

Inherits: QListView → QAbstractItemView → QAbstractScrollArea → QFrame → QWidget → QObject

## Detailed Description

Item view for listing items

KCategorizedView allows you to use it as it were a QListView. Subclass KCategorizedSortFilterProxyModel to provide category information for items.

See also:
  KCategorizedSortFilterProxyModel

Author:
  Rafael Fernández López <ereslibre@kde.org>

## Methods
| __init__ (self, QWidget parent=0)
KCategoryDrawer | categoryDrawer (self)
| currentChanged (self, QModelIndex current, QModelIndex previous)
| dataChanged (self, QModelIndex topLeft, QModelIndex bottomRight)
| dragLeaveEvent (self, QDragLeaveEvent event)
| dragMoveEvent (self, QDragMoveEvent event)
| dropEvent (self, QDropEvent event)
QModelIndex | indexAt (self, QPoint point)
| leaveEvent (self, QEvent event)
| mouseMoveEvent (self, QMouseEvent event)
| mousePressEvent (self, QMouseEvent event)
| mouseReleaseEvent (self, QMouseEvent event)
QModelIndex | moveCursor (self, QAbstractItemView.CursorAction cursorAction, Qt.KeyboardModifiers modifiers)
| paintEvent (self, QPaintEvent event)
| reset (self)
| resizeEvent (self, QResizeEvent event)
| rowsInserted (self, QModelIndex parent, int start, int end)
| rowsInsertedArtifficial (self, QModelIndex parent, int start, int end)
| rowsRemoved (self, QModelIndex parent, int start, int end)
| setCategoryDrawer (self, KCategoryDrawer categoryDrawer)
| setGridSize (self, QSize size)
| setModel (self, QAbstractItemModel model)
| setSelection (self, QRect rect, QItemSelectionModel.SelectionFlags flags)
| slotLayoutChanged (self)
| startDrag (self, Qt.DropActions supportedActions)
| updateGeometries (self)
QRect | visualRect (self, QModelIndex index)

## Method Documentation

__init__ | ( | self, |
|  | QWidget | parent=0
| ) |  |  |

KCategoryDrawer categoryDrawer | ( |  | self ) |

currentChanged | ( | self, |
|  | QModelIndex | current,
|  | QModelIndex | previous
| ) |  |  |

dataChanged | ( | self, |
|  | QModelIndex | topLeft,
|  | QModelIndex | bottomRight
| ) |  |  |

dragLeaveEvent | ( | self, |
|  | QDragLeaveEvent | event
| ) |  |  |

dragMoveEvent | ( | self, |
|  | QDragMoveEvent | event
| ) |  |  |

dropEvent | ( | self, |
|  | QDropEvent | event
| ) |  |  |

QModelIndex indexAt | ( | self, |
|  | QPoint | point
| ) |  |  |

leaveEvent | ( | self, |
|  | QEvent | event
| ) |  |  |

mouseMoveEvent | ( | self, |
|  | QMouseEvent | event
| ) |  |  |

mousePressEvent | ( | self, |
|  | QMouseEvent | event
| ) |  |  |

mouseReleaseEvent | ( | self, |
|  | QMouseEvent | event
| ) |  |  |

QModelIndex moveCursor | ( | self, |
|  | QAbstractItemView.CursorAction | cursorAction,
|  | Qt.KeyboardModifiers | modifiers
| ) |  |  |

paintEvent | ( | self, |
|  | QPaintEvent | event
| ) |  |  |

reset | ( |  | self ) |

resizeEvent | ( | self, |
|  | QResizeEvent | event
| ) |  |  |

rowsInserted | ( | self, |
|  | QModelIndex | parent,
|  | int | start,
|  | int | end
| ) |  |  |

rowsInsertedArtifficial | ( | self, |
|  | QModelIndex | parent,
|  | int | start,
|  | int | end
| ) |  |  |

rowsRemoved | ( | self, |
|  | QModelIndex | parent,
|  | int | start,
|  | int | end
| ) |  |  |

setCategoryDrawer | ( | self, |
|  | KCategoryDrawer | categoryDrawer
| ) |  |  |

setGridSize | ( | self, |
|  | QSize | size
| ) |  |  |

setModel | ( | self, |
|  | QAbstractItemModel | model
| ) |  |  |

setSelection | ( | self, |
|  | QRect | rect,
|  | QItemSelectionModel.SelectionFlags | flags
| ) |  |  |

slotLayoutChanged | ( |  | self ) |

startDrag | ( | self, |
|  | Qt.DropActions | supportedActions
| ) |  |  |

updateGeometries | ( |  | self ) |

QRect visualRect | ( | self, |
|  | QModelIndex | index
| ) |  |  |