#### PyKDE - Python Bindings for KDE

# class KListView |
Table of contents
Modules
kdeui Classes
All Classes

Module | kdeui
Class | KListView
Inherits | QListView

### enums

- SelectionModeExt = {Single, Multi, Extended, NoSelection, FileManager }

### methods

- KListView (parent = 0, name = 0)

  returns a KListView instance
  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | 0
  name | char | 0

- aboutToMove ()

  returns nothing

- acceptDrag (event)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  event | QDropEvent |

- activateAutomaticSelection ()

  returns nothing

- addColumn (label, width = -1)

  returns (int)
  In versions KDE 3.0.1 and above only
  Argument | Type | Default
  --- | --- | ---
  label | QString |
  width | int | -1

- addColumn (iconset, label, width = -1)

  returns (int)
  In versions KDE 3.0.1 and above only
  Argument | Type | Default
  --- | --- | ---
  iconset | QIconSet |
  label | QString |
  width | int | -1

- alternateBackground ()

  returns (QColor)

- ascendingSort ()

  returns (bool)

- autoOpen ()

  returns (bool)

- automaticSelection ()

  returns (bool)

- below (rect, p)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  rect | QRect |
  p | QPoint |

- below (i, p)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  i | QListViewItem |
  p | QPoint |

- cleanDropVisualizer ()

  returns nothing

- cleanItemHighlighter ()

  returns nothing

- columnSorted ()

  returns (int)

- contentsDragEnterEvent (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | QDragEnterEvent |

- contentsDragLeaveEvent (event)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  event | QDragLeaveEvent |

- contentsDragMoveEvent (event)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  event | QDragMoveEvent |

- contentsDropEvent (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | QDropEvent |

- contentsMouseDoubleClickEvent (e)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  e | QMouseEvent |

- contentsMouseMoveEvent (e)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  e | QMouseEvent |

- contentsMousePressEvent (e)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  e | QMouseEvent |

- contentsMouseReleaseEvent (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | QMouseEvent |

- contextMenu (l, i, p)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  l | KListView |
  i | QListViewItem |
  p | QPoint |

- createChildren ()

  returns (bool)

- deactivateAutomaticSelection ()

  returns nothing

- depthToPixels (depth)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  depth | int |

- disableAutoSelection ()

  returns nothing
  In versions KDE 3.2.0 and above only

- doneEditing (item, row)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  item | QListViewItem |
  row | int |

- doubleClicked (item, pos, c)

  returns nothing
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  item | QListViewItem |
  pos | QPoint |
  c | int |

- doubleClicked (a0, a1, a2)

  returns nothing
  In versions less than KDE 3.3.0 only
  Argument | Type | Default
  --- | --- | ---
  a0 | QListViewItem |
  a1 | QPoint |
  a2 | int |

- dragEnabled ()

  returns (bool)

- dragObject ()

  Not Implemented

- dragObject ()

  returns (QDragObject)

- drawDropVisualizer (p, parent, after)

  returns (QRect)
  Argument | Type | Default
  --- | --- | ---
  p | QPainter |
  parent | QListViewItem |
  after | QListViewItem |

- drawItemHighlighter (painter, item)

  returns (QRect)
  Argument | Type | Default
  --- | --- | ---
  painter | QPainter |
  item | QListViewItem |

- dropHighlighter ()

  returns (bool)

- dropVisualizer ()

  returns (bool)

- dropVisualizerWidth ()

  returns (int)

- dropped (e, after)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  e | QDropEvent |
  after | QListViewItem |

- dropped (list, e, after)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  list | KListView |
  e | QDropEvent |
  after | QListViewItem |

- dropped (list, e, parent, after)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  list | KListView |
  e | QDropEvent |
  parent | QListViewItem |
  after | QListViewItem |

- dropped (e, parent, after)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  e | QDropEvent |
  parent | QListViewItem |
  after | QListViewItem |

- emitContextMenu (a0, a1, a2)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | QListViewItem |
  a1 | QPoint |
  a2 | int |

- emitContextMenu (a0, a1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | KListView |
  a1 | QListViewItem |

- emitExecute (item, pos, c)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  item | QListViewItem |
  pos | QPoint |
  c | int |

- event (a0)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  a0 | QEvent |

- executed (item)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  item | QListViewItem |

- executed (item, pos, c)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  item | QListViewItem |
  pos | QPoint |
  c | int |

- fileManagerKeyPressEvent (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | QKeyEvent |

- findDrop (pos, parent, after)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  pos | QPoint |
  parent | QListViewItem |
  after | QListViewItem |

- focusInEvent (fe)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  fe | QFocusEvent |

- focusOutEvent (fe)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  fe | QFocusEvent |

- fullWidth ()

  returns (bool)

- isExecuteArea (point)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  point | QPoint |

- isExecuteArea (x)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  x | int |

- isRenameable (column)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  column | int |

- itemAdded (item)

  returns nothing
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  item | QListViewItem |

- itemAtIndex (index)

  returns (QListViewItem)
  Argument | Type | Default
  --- | --- | ---
  index | int |

- itemIndex (item)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  item | QListViewItem |

- itemRemoved (item)

  returns nothing
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  item | QListViewItem |

- itemRenamed (item, str, col)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  item | QListViewItem |
  str | QString |
  col | int |

- itemRenamed (item)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  item | QListViewItem |

- itemsMovable ()

  returns (bool)

- itemsRenameable ()

  returns (bool)

- keyPressEvent (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | QKeyEvent |

- lastChild ()

  returns (QListViewItem)

- lastItem ()

  returns (QListViewItem)

- leaveEvent (e)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  e | QEvent |

- menuShortCutPressed (list, item)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  list | KListView |
  item | QListViewItem |

- movableDropEvent (parent, afterme)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  parent | QListViewItem |
  afterme | QListViewItem |

- moveItem (item, parent, after)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  item | QListViewItem |
  parent | QListViewItem |
  after | QListViewItem |

- moved ()

  returns nothing

- moved (item, afterFirst, afterNow)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  item | QListViewItem |
  afterFirst | QListViewItem |
  afterNow | QListViewItem |

- moved (items, afterFirst, afterNow)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  items | QPtrList |
  afterFirst | QPtrList |
  afterNow | QPtrList |

- removeColumn (index)

  returns nothing
  In versions KDE 3.0.1 and above only
  Argument | Type | Default
  --- | --- | ---
  index | int |

- rename (item, c)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  item | QListViewItem |
  c | int |

- renameLineEdit ()

  returns (KLineEdit)
  In versions KDE 3.1.0 and above only

- resetAutoSelection ()

  returns nothing
  In versions KDE 3.2.0 and above only

- restoreLayout (config, group)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  config | KConfig |
  group | QString |

- saveLayout (config, group)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  config | KConfig |
  group | QString |

- selectedItems ()

  returns (QPtrList)

- selectedItems (includeHiddenItems)

  returns (QPtrList)
  In versions KDE 3.4.0 and above only
  Argument | Type | Default
  --- | --- | ---
  includeHiddenItems | bool |

- selectionModeExt ()

  returns (SelectionModeExt)

- setAcceptDrops (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

- setAlternateBackground (c)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  c | QColor |

- setAutoOpen (b)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  b | bool |

- setCreateChildren (b)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  b | bool |

- setDragEnabled (b)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  b | bool |

- setDropHighlighter (b)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  b | bool |

- setDropVisualizer (b)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  b | bool |

- setDropVisualizerWidth (w)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  w | int |

- setFullWidth ()

  returns nothing

- setFullWidth (fullWidth)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  fullWidth | bool |

- setItemsMovable (b)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  b | bool |

- setItemsRenameable (b)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  b | bool |

- setRenameable (column, yesno = 1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  column | int |
  yesno | bool | 1

- setSelectionModeExt (mode)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  mode | KListView.SelectionModeExt |

- setShadeSortColumn (shadeSortColumn)

  returns nothing
  In versions KDE 3.4.0 and above only
  Argument | Type | Default
  --- | --- | ---
  shadeSortColumn | bool |

- setSorting (column, ascending = 1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  column | int |
  ascending | bool | 1

- setTabOrderedRenaming (b)

  returns nothing
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  b | bool |

- setTooltipColumn (column)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  column | int |

- shadeSortColumn ()

  returns (bool)
  In versions KDE 3.4.0 and above only

- showTooltip (item, pos, column)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  item | QListViewItem |
  pos | QPoint |
  column | int |

- slotAutoSelect ()

  returns nothing

- slotDragExpand ()

  returns nothing
  In versions KDE 3.2.0 and above only

- slotHeaderChanged ()

  returns nothing

- slotMouseButtonClicked (btn, item, pos, c)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  btn | int |
  item | QListViewItem |
  pos | QPoint |
  c | int |

- slotOnItem (item)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  item | QListViewItem |

- slotOnViewport ()

  returns nothing

- slotSettingsChanged (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- startDrag ()

  returns nothing

- tabOrderedRenaming ()

  returns (bool)
  In versions KDE 3.1.0 and above only

- takeItem (i)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  i | QListViewItem |

- tooltip (item, column)

  returns (QString)
  Argument | Type | Default
  --- | --- | ---
  item | QListViewItem |
  column | int |

- tooltipColumn ()

  returns (int)

- viewportPaintEvent (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | QPaintEvent |

- viewportResizeEvent (e)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  e | QResizeEvent |