Table of Contents

Class QtItem

Namespace
Ranorex
Assembly
Ranorex.Plugin.Qt.dll

The item is a part of a Qt AbstractItemModel container.

public class QtItem : Adapter, IAdapter
Inheritance
QtItem
Implements
Inherited Members

Constructors

QtItem()

Creates a new QtItem adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!

protected QtItem()

QtItem(Element)

Creates a new QtItem adapter instance.

public QtItem(Element element)

Parameters

element Element

The element to create the adapter for.

Exceptions

NullReferenceException

If element is null.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

Properties

AccessibleDescription

The accessible description set on the item.

public virtual string AccessibleDescription { get; }

Property Value

string

AccessibleText

The accessible text set on the item.

public virtual string AccessibleText { get; }

Property Value

string

BackColor

The items' backgorund color.

public virtual object BackColor { get; }

Property Value

object

EditableText

The editor text set on the item.

public virtual string EditableText { get; }

Property Value

string

RequiredCapabilities

Capabilities required by the adapter implementation.

protected override string[] RequiredCapabilities { get; }

Property Value

string[]

StatusTip

The status tip text set on the item.

public virtual string StatusTip { get; }

Property Value

string

TextColor

The items' text color.

public virtual object TextColor { get; }

Property Value

object

ToolTip

The tool tip text set on the item.

public virtual string ToolTip { get; }

Property Value

string

UserData

Custom user data set on the item.

public virtual object UserData { get; }

Property Value

object

Methods

FromElement(Element)

Converts an Element to an instance of this class.

public static QtItem FromElement(Element element)

Parameters

element Element

The element to convert.

Returns

QtItem

The QtItem.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

FromPath(string)

Converts a string to an instance of this class by searching the root.

public static QtItem FromPath(string path)

Parameters

path string

The search path.

Returns

QtItem

The QtItem.

Remarks

The DefaultSearchTimeout is used to search for the specified path.

Exceptions

ArgumentNullException

If path is null.

RxPathException

If the specified path is not valid.

ElementNotFoundException

If no element is found.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

Operators

implicit operator QtItem(Element)

Implicitly converts an Element to an instance of this class.

public static implicit operator QtItem(Element element)

Parameters

element Element

The element to convert.

Returns

QtItem

The QtItem.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

implicit operator QtItem(string)

Implicitly converts a string to an instance of this class by searching the root.

public static implicit operator QtItem(string path)

Parameters

path string

The search path.

Returns

QtItem

The QtItem.

Remarks

The DefaultSearchTimeout is used to search for the specified path.

Exceptions

ArgumentNullException

If path is null.

RxPathException

If the specified path is not valid.

ElementNotFoundException

If no element is found.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.