QtMenu Property (Qt Application Objects)

Applies to TestComplete 14.72, last modified on April 22, 2021

Description

Use this property to get the Menu object to perform various actions over the menu of a Qt application object.

Declaration

TestObj.QtMenu

Read-Only Property A Menu object
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section

Applies To

All Qt application objects.

View Mode

To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Property Value

A Menu object.

Remarks

The menu should be visible, otherwise, actions cannot be performed. If the menu is hidden, the property returns an empty object: Nothing in VBScript, nil in DelphiScript, None in Python, null in JavaScript, JScript, C++Script and C#Script.

Sometimes, you may face issues with recognizing the menu. Please, see Troubleshooting Qt Applications for possible workarounds.

See Also

Support for Qt Applications' Controls
Troubleshooting Qt Applications

Highlight search results