QtPopupMenu Property (Qt Application Objects)

Applies to TestComplete 15.70, last modified on December 17, 2024

Description

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

Declaration

TestObj.QtPopupMenu

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 context 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.

If the Qt application object has more than one child menu, QtPopupMenu may be recognized in a wrong way. For details, please refer to Troubleshooting Qt Applications.

See Also

Support for Qt Applications' Controls
Troubleshooting Qt Applications

Highlight search results