# class KMimeTypeChooserDialog

###

Module | kio
Namespace |
Class | KMimeTypeChooserDialog
Inherits | KDialog

### methods

- KMimeTypeChooserDialog (caption, text, selectedMimeTypes, defaultGroup, groupsToShow, visuals, parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  caption | QString | QString()
  text | QString | QString()
  selectedMimeTypes | QStringList | QStringList()
  defaultGroup | QString | QString()
  groupsToShow | QStringList | QStringList()
  visuals | int | KMimeTypeChooser.Comments|KMimeTypeChooser.Patterns|KMimeTypeChooser.EditButton
  parent | QWidget | 0

  Create a KMimeTypeChooser dialog.

  caption - The title of the dialog

  text - A Text to display above the list

  selectedMimeTypes - A list of mimetype names, theese will be checked in the list if they exist. patterns will be added to the list view.

  visuals - A OR'd KMimetypeChooser.Visuals enum to decide which data and buttons to display.

  defaultGroup - The group to open when no groups are selected (like "text"). If not provided, no group is opened. If groupsToShow is provided and defaultGroup is not a member of that, it is ignored.

  groupsToShow - a list of mimetype groups to show. If empty, all groups are shown.

  parent - The parent widget to use

- KMimeTypeChooserDialog (caption, text, selectedMimeTypes, defaultGroup, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  caption | QString |
  text | QString |
  selectedMimeTypes | QStringList |
  defaultGroup | QString |
  parent | QWidget | 0

- KMimeTypeChooserDialog (a0, a1, a2, a3, a4, a5, a6)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QString | QString()
  a1 | QString | QString()
  a2 | QStringList | QStringList()
  a3 | QString | QString()
  a4 | QStringList | QStringList()
  a5 | int | KMimeTypeChooser.Comments|KMimeTypeChooser.Patterns|KMimeTypeChooser.EditButton
  a6 | QWidget | 0

- chooser ( )

  returns KMimeTypeChooser

  Returns a pointer to the KMimeTypeChooser widget