Table of Contents

Class QtWindow

Namespace
Ranorex
Assembly
Ranorex.Plugin.Qt.dll

The element is Qt application window.

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

Constructors

QtWindow()

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

protected QtWindow()

QtWindow(Element)

Creates a new QtWindow adapter instance.

public QtWindow(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

AppName

The name of the application this window belongs to.

public virtual string AppName { get; }

Property Value

string

AppVersion

The version of the application this window belongs to.

public virtual string AppVersion { get; }

Property Value

string

CurrentTooltip

The current tooltip text if a tooltip is visible.

public virtual string CurrentTooltip { get; }

Property Value

string

QtVersion

The Qt version of the application this window belongs to.

public virtual string QtVersion { get; }

Property Value

string

RanorexLibVersion

The version of the Ranorex Qt automation library.

public virtual string RanorexLibVersion { get; }

Property Value

string

RequiredCapabilities

Capabilities required by the adapter implementation.

protected override string[] RequiredCapabilities { get; }

Property Value

string[]

Methods

FromElement(Element)

Converts an Element to an instance of this class.

public static QtWindow FromElement(Element element)

Parameters

element Element

The element to convert.

Returns

QtWindow

The QtWindow.

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 QtWindow FromPath(string path)

Parameters

path string

The search path.

Returns

QtWindow

The QtWindow.

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 QtWindow(Element)

Implicitly converts an Element to an instance of this class.

public static implicit operator QtWindow(Element element)

Parameters

element Element

The element to convert.

Returns

QtWindow

The QtWindow.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

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

implicit operator QtWindow(string)

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

public static implicit operator QtWindow(string path)

Parameters

path string

The search path.

Returns

QtWindow

The QtWindow.

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.