Feature request #10133

Reccommendation for plugin writers: customization menu

Added by Paolo Cavallini over 6 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Documentation and Help
Pull Request or Patch supplied:No Resolution:fixed/implemented
Easy fix?:No Copied to github as #:18592

Description

From Radim comments.

Customization only works for objects with objectName. objectName is automatically set by Qt for objects created in designer (compiled from .ui). For objects created programmatically it has to be set. Object names have to be added in all plugins.
Recommendation for plugin authors: when you are adding QMenu or QAction, always set its object name, e.g.: myMenu = QMenu('My menu") myMenu.setObjectName("myMenu")

See also #9134

This should be added to Python manual/guidelines.

History

#1 Updated by Alexander Bruy over 5 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

Already added in documentation master

Also available in: Atom PDF