# class KOCRDialogFactory

### abstract class

Table of contents
Modules
kio Classes
All Classes

Module | kio
Namespace | global
Class | KOCRDialogFactory
Inherits | KPluginFactory

A factory for creating a KOCRDialog. You need to reimplement createDialog(). Factory for creating KScanDialogs

### methods

- KOCRDialogFactory (parent)

  returns a KOCRDialogFactory object

  Argument | Type | Default
  --- | --- | ---
  parent | QObject | None

  Creates a new KScanDialogFactory.

  parent - the QWidget's parent, or 0

- componentData ()

  returns (KComponentData)

  Returns the instance. Returns the KComponentData

- createDialog (parent, modal)

  returns (KOCRDialog)
  pure virtual

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | None
  modal | bool | False

  Your library should reimplement this method to return your KOCRDialog derived dialog.

  parent - the QWidget's parent, or 0

  modal - if true the dialog is model

- createObject (parent, classname, args)

  returns (QObject)

  Argument | Type | Default
  --- | --- | ---
  parent | QObject | None
  classname | char | "QObject"
  args | QStringList | QStringList ()

- setName (componentName)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  componentName | QByteArray |

  Creates a new instance with the given name.

  componentName - the name of the instance